ID: "drawers". Right-drawer toggles with "drawer: " prefix for discovery. More...
#include <command_palette_providers.h>


Public Member Functions | |
| DrawerCommandsProvider (std::function< void(int drawer_type)> toggle_callback, std::function< void()> cycle_next={}, std::function< void()> cycle_prev={}) | |
| std::string | ProviderId () const override |
| Stable identifier. Used for selective refresh; must be unique. | |
| void | Provide (CommandPalette *palette) override |
Populate palette with this source's commands. | |
Public Member Functions inherited from yaze::editor::CommandProvider | |
| virtual | ~CommandProvider ()=default |
Private Attributes | |
| std::function< void(int)> | toggle_callback_ |
| std::function< void()> | cycle_next_ |
| std::function< void()> | cycle_prev_ |
ID: "drawers". Right-drawer toggles with "drawer: " prefix for discovery.
Definition at line 75 of file command_palette_providers.h.
| yaze::editor::DrawerCommandsProvider::DrawerCommandsProvider | ( | std::function< void(int drawer_type)> | toggle_callback, |
| std::function< void()> | cycle_next = {}, | ||
| std::function< void()> | cycle_prev = {} ) |
Definition at line 43 of file command_palette_providers.cc.
|
inlineoverridevirtual |
Stable identifier. Used for selective refresh; must be unique.
Implements yaze::editor::CommandProvider.
Definition at line 80 of file command_palette_providers.h.
|
overridevirtual |
Populate palette with this source's commands.
Implements yaze::editor::CommandProvider.
Definition at line 50 of file command_palette_providers.cc.
References cycle_next_, cycle_prev_, yaze::editor::CommandPalette::RegisterDrawerCommands(), and toggle_callback_.

|
private |
Definition at line 84 of file command_palette_providers.h.
Referenced by Provide().
|
private |
Definition at line 85 of file command_palette_providers.h.
Referenced by Provide().
|
private |
Definition at line 86 of file command_palette_providers.h.
Referenced by Provide().