HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
tt::keyboard_bindings Class Reference

Public Member Functions

void addSystemBinding (keyboard_key key, command command) noexcept
 
void addIgnoredBinding (keyboard_key key, command command) noexcept
 
void addUserBinding (keyboard_key key, command command) noexcept
 
std::vector< command > const & translate (keyboard_key key) const noexcept
 translate a key press in the empty-context to a command.
 
void clear () noexcept
 Clear all bindings.
 
void loadBindings (URL url, bool system_binding)
 Load bindings from a JSON file.
 
void loadSystemBindings ()
 Load system bindings.
 
void loadUserBindings (URL url)
 
void saveUserBindings (URL url)
 Save user bindings This will save all bindings that are different from the system bindings.
 

Static Public Member Functions

static keyboard_bindingsglobal () noexcept
 

Member Function Documentation

◆ clear()

void tt::keyboard_bindings::clear ( )
inlinenoexcept

Clear all bindings.

When loading a new user-binding file, one should do a clear() followed by loading the system bindings, followed by the user bindings.

◆ loadBindings()

void tt::keyboard_bindings::loadBindings ( URL url,
bool system_binding )

Load bindings from a JSON file.

◆ loadSystemBindings()

void tt::keyboard_bindings::loadSystemBindings ( )
inline

Load system bindings.

◆ saveUserBindings()

void tt::keyboard_bindings::saveUserBindings ( URL url)

Save user bindings This will save all bindings that are different from the system bindings.

◆ translate()

std::vector< command > const & tt::keyboard_bindings::translate ( keyboard_key key) const
inlinenoexcept

translate a key press in the empty-context to a command.


The documentation for this class was generated from the following file: