yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::ContentRegistry::Shortcuts Namespace Reference

Registry for Keyboard Shortcuts. Allows components to declare their shortcuts statically. More...

Classes

struct  ShortcutDef
 

Functions

void Register (const ShortcutDef &shortcut)
 
void add (const std::string &id, const std::string &key, const std::string &desc)
 
std::vector< ShortcutDefGetAll ()
 

Detailed Description

Registry for Keyboard Shortcuts. Allows components to declare their shortcuts statically.

Function Documentation

◆ Register()

void yaze::editor::ContentRegistry::Shortcuts::Register ( const ShortcutDef & shortcut)

Definition at line 257 of file content_registry.cc.

Referenced by add().

◆ add()

void yaze::editor::ContentRegistry::Shortcuts::add ( const std::string & id,
const std::string & key,
const std::string & desc )

Definition at line 262 of file content_registry.cc.

References Register().

Here is the call graph for this function:

◆ GetAll()

std::vector< ShortcutDef > yaze::editor::ContentRegistry::Shortcuts::GetAll ( )

Definition at line 266 of file content_registry.cc.