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

#include <command_palette.h>

Public Attributes

std::string name
 
std::string category
 
std::string description
 
std::string shortcut
 
std::function< void()> callback
 
int usage_count = 0
 
int64_t last_used_ms = 0
 
std::string provider_id
 
bool enabled = true
 
std::string note
 

Detailed Description

Definition at line 53 of file command_palette.h.

Member Data Documentation

◆ name

◆ category

◆ description

◆ shortcut

◆ callback

◆ usage_count

int yaze::editor::CommandEntry::usage_count = 0

◆ last_used_ms

int64_t yaze::editor::CommandEntry::last_used_ms = 0

◆ provider_id

std::string yaze::editor::CommandEntry::provider_id

Provider attribution. Empty means the entry was added directly (not through a registered CommandProvider) and cannot be selectively refreshed.

Definition at line 63 of file command_palette.h.

Referenced by yaze::editor::CommandPalette::AddCommand().

◆ enabled

bool yaze::editor::CommandEntry::enabled = true

Disabled entries are listed (e.g. a go-to kind with no jump path) but never executed. note explains why.

Definition at line 66 of file command_palette.h.

Referenced by yaze::editor::BuildGotoEntry(), and yaze::editor::UICoordinator::DrawCommandPalette().

◆ note

std::string yaze::editor::CommandEntry::note

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