ncmpc  0.31
Public Member Functions | Data Fields
KeyBindings Struct Reference

#include <Bindings.hxx>

Public Member Functions

gcc_pure Command FindKey (int key) const
 
gcc_pure const char * GetKeyNames (Command command, bool all) const
 
void SetKey (Command command, const std::array< int, MAX_COMMAND_KEYS > &keys)
 
bool Check (char *buf, size_t size) const
 
bool WriteToFile (FILE *f, int all) const
 

Data Fields

std::array< KeyBinding, size_t(Command::NONE)> key_bindings
 

Member Function Documentation

◆ FindKey()

gcc_pure Command KeyBindings::FindKey ( int  key) const

◆ GetKeyNames()

gcc_pure const char* KeyBindings::GetKeyNames ( Command  command,
bool  all 
) const

◆ SetKey()

void KeyBindings::SetKey ( Command  command,
const std::array< int, MAX_COMMAND_KEYS > &  keys 
)
inline

◆ Check()

bool KeyBindings::Check ( char *  buf,
size_t  size 
) const
Returns
true on success, false on error

◆ WriteToFile()

bool KeyBindings::WriteToFile ( FILE *  f,
int  all 
) const
Returns
true on success, false on error

Field Documentation

◆ key_bindings

std::array<KeyBinding, size_t(Command::NONE)> KeyBindings::key_bindings

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