Editor API
UnigineEditor public API
|
This class is used to manage all shortcuts (hotkeys and combinations) and shortcut contexts that you usually see in Windows - Settings - Hotkeys. More...
Static Public Member Functions | |
static Unigine::Ptr< ShortcutContext > | createContext (const char *context_id, const char *title, ShortcutContext::TYPE context_type=ShortcutContext::TYPE_SHARED, int priority=0) |
Creates a new context using the given parameters (ID, title, type, and priority). More... | |
static bool | removeContext (const char *context_id) |
Removes the context with the given ID (all its shortcuts are removed as well). More... | |
static bool | hasContext (const char *context_id) |
Returns a value indicating if a context with the given ID exists. More... | |
static Unigine::Ptr< ShortcutContext > | getContext (const char *context_id) |
Returns the context with the given ID. More... | |
static void | getContexts (Unigine::Vector< Unigine::Ptr< ShortcutContext >> &contexts) |
Collects all registered contexts and puts them to the specified output vector. More... | |
static Unigine::Event< const Unigine::Ptr< ShortcutContext > & > & | getEventContextCreated () |
Event triggered on context creation. More... | |
static Unigine::Event< const char * > & | getEventContextRemoved () |
Event triggered on context removal. More... | |
static Unigine::Event< const Unigine::Ptr< ShortcutContext > &, const Unigine::Ptr< Shortcut > & > & | getEventShortcutCreated () |
Event triggered on shortcut creation. More... | |
static Unigine::Event< const char *, const char * > & | getEventShortcutRemoved () |
Event triggered on shortcut removal. More... | |
static Unigine::Event & | getEventKeyboardLayoutChanged () |
Event triggered on changing keyboard layout. More... | |
This class is used to manage all shortcuts (hotkeys and combinations) and shortcut contexts that you usually see in Windows - Settings - Hotkeys.
|
static |
Creates a new context using the given parameters (ID, title, type, and priority).
context_id | ID of the context to be created. |
title | Title of the context to be displayed in UnigineEditor. |
context_type | Type of the context (shared or exclusive). |
priority | Priority of the context (a context with a higher priority value takes precedence over others). |
|
static |
Returns the context with the given ID.
context_id | ID of the context to be retrieved. |
|
static |
Collects all registered contexts and puts them to the specified output vector.
contexts | Output vector, to receive the list of contexts. |
|
static |
Event triggered on context creation.
|
static |
Event triggered on context removal.
|
static |
Event triggered on changing keyboard layout.
|
static |
Event triggered on shortcut creation.
|
static |
Event triggered on shortcut removal.
|
static |
Returns a value indicating if a context with the given ID exists.
context_id | ID of the context to be checked. |
|
static |
Removes the context with the given ID (all its shortcuts are removed as well).
context_id | ID of the context to be removed. |