yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::CommandPaletteWidget Class Reference

#include <command_palette_widget.h>

Collaboration diagram for yaze::editor::CommandPaletteWidget:

Public Member Functions

 CommandPaletteWidget (CommandPalette *palette)
 
void SetPalette (CommandPalette *palette)
 
void Toggle ()
 
void Show ()
 
void Hide ()
 
bool IsVisible () const
 
void CheckShortcut ()
 
void Draw ()
 

Private Member Functions

void ExecuteCommand (const CommandEntry &cmd)
 

Private Attributes

CommandPalettepalette_ = nullptr
 
bool visible_ = false
 
bool focus_input_ = false
 
char search_buffer_ [256] = {}
 
int selected_index_ = 0
 

Detailed Description

Definition at line 17 of file command_palette_widget.h.

Constructor & Destructor Documentation

◆ CommandPaletteWidget()

yaze::editor::CommandPaletteWidget::CommandPaletteWidget ( CommandPalette * palette)
inlineexplicit

Definition at line 19 of file command_palette_widget.h.

Member Function Documentation

◆ SetPalette()

void yaze::editor::CommandPaletteWidget::SetPalette ( CommandPalette * palette)
inline

Definition at line 21 of file command_palette_widget.h.

References palette_.

◆ Toggle()

void yaze::editor::CommandPaletteWidget::Toggle ( )
inline

Definition at line 24 of file command_palette_widget.h.

References visible_.

Referenced by CheckShortcut().

◆ Show()

void yaze::editor::CommandPaletteWidget::Show ( )
inline

Definition at line 25 of file command_palette_widget.h.

References focus_input_, and visible_.

◆ Hide()

void yaze::editor::CommandPaletteWidget::Hide ( )
inline

Definition at line 29 of file command_palette_widget.h.

References visible_.

Referenced by CheckShortcut(), and ExecuteCommand().

◆ IsVisible()

bool yaze::editor::CommandPaletteWidget::IsVisible ( ) const
inline

Definition at line 30 of file command_palette_widget.h.

References visible_.

◆ CheckShortcut()

void yaze::editor::CommandPaletteWidget::CheckShortcut ( )
inline

Definition at line 33 of file command_palette_widget.h.

References focus_input_, Hide(), Toggle(), and visible_.

Here is the call graph for this function:

◆ Draw()

◆ ExecuteCommand()

void yaze::editor::CommandPaletteWidget::ExecuteCommand ( const CommandEntry & cmd)
inlineprivate

Member Data Documentation

◆ palette_

CommandPalette* yaze::editor::CommandPaletteWidget::palette_ = nullptr
private

Definition at line 176 of file command_palette_widget.h.

Referenced by Draw(), ExecuteCommand(), and SetPalette().

◆ visible_

bool yaze::editor::CommandPaletteWidget::visible_ = false
private

Definition at line 177 of file command_palette_widget.h.

Referenced by CheckShortcut(), Draw(), Hide(), IsVisible(), Show(), and Toggle().

◆ focus_input_

bool yaze::editor::CommandPaletteWidget::focus_input_ = false
private

Definition at line 178 of file command_palette_widget.h.

Referenced by CheckShortcut(), Draw(), and Show().

◆ search_buffer_

char yaze::editor::CommandPaletteWidget::search_buffer_[256] = {}
private

Definition at line 179 of file command_palette_widget.h.

Referenced by Draw(), and ExecuteCommand().

◆ selected_index_

int yaze::editor::CommandPaletteWidget::selected_index_ = 0
private

Definition at line 180 of file command_palette_widget.h.

Referenced by Draw(), and ExecuteCommand().


The documentation for this class was generated from the following file: