$darkmode
Macros | |
| #define | add_binding(k, m, a, d, c, t) add_binding_impl(registry, k, m, a, d, c, t) |
Enumerations | |
| enum | { MAX_BINDINGS = 128 } |
Functions | |
| static void | add_binding_impl (AppBindingRegistry *registry, int key, int mods, const char *action, const char *desc, BindingCategory cat, BindingType type) |
| void | app_binding_registry_init (AppBindingRegistry *registry) |
| Initializes the binding registry and populates it with all application shortcuts. More... | |
| const AppBinding * | app_binding_registry_get (const AppBindingRegistry *registry, int key, int mods) |
| Retrieves the binding for a specific key/mods combination. More... | |
| int | app_binding_registry_get_count (const AppBindingRegistry *registry) |
| Returns the total number of registered bindings. More... | |
| const AppBinding * | app_binding_registry_at (const AppBindingRegistry *registry, int index) |
| Returns a pointer to the binding at the given index. More... | |
| #define add_binding | ( | k, | |
| m, | |||
| a, | |||
| d, | |||
| c, | |||
| t | |||
| ) | add_binding_impl(registry, k, m, a, d, c, t) |
|
static |
| const AppBinding* app_binding_registry_at | ( | const AppBindingRegistry * | registry, |
| int | index | ||
| ) |
Returns a pointer to the binding at the given index.
| registry | Pointer to the initialized registry. |
| index | Index of the binding to retrieve. |
| const AppBinding* app_binding_registry_get | ( | const AppBindingRegistry * | registry, |
| int | key, | ||
| int | mods | ||
| ) |
Retrieves the binding for a specific key/mods combination.
| registry | Pointer to the initialized registry. |
| key | GLFW key code. |
| mods | GLFW modifier flags. |
| int app_binding_registry_get_count | ( | const AppBindingRegistry * | registry | ) |
Returns the total number of registered bindings.
| registry | Pointer to the initialized registry. |
| void app_binding_registry_init | ( | AppBindingRegistry * | registry | ) |
Initializes the binding registry and populates it with all application shortcuts.
| registry | Pointer to the registry to initialize. |