Settings module
Classes
- struct UserShortcuts
- User shortcuts read from yaml.
Typedefs
- using UserShortcuts = struct UserShortcuts
- User shortcuts read from yaml.
Functions
- auto user_shortcuts_new(void) -> UserShortcuts*
- Reads the file and fills up the object.
- auto user_shortcuts_get(UserShortcuts* self, bool primary, const char* action, const char* default_shortcut) -> const char*
- Returns a shortcut for the given action, or
default_shortcut
if not found.
Typedef documentation
typedef struct UserShortcuts UserShortcuts
#include <settings/user_shortcuts.h>
User shortcuts read from yaml.
Function documentation
UserShortcuts* user_shortcuts_new(void)
#include <settings/user_shortcuts.h>
Reads the file and fills up the object.
const char* user_shortcuts_get(UserShortcuts* self,
bool primary,
const char* action,
const char* default_shortcut)
#include <settings/user_shortcuts.h>
Returns a shortcut for the given action, or default_shortcut
if not found.
Parameters | |
---|---|
self | |
primary | Whether to get the primary shortcut, otherwise the secondary. |
action | |
default_shortcut |