Settings module

Contents

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

User shortcuts read from yaml.

Function documentation

UserShortcuts* user_shortcuts_new(void)

Reads the file and fills up the object.

const char* user_shortcuts_get(UserShortcuts* self, bool primary, const char* action, const char* default_shortcut)

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