ClanLib
2.3.7
|
GUI Accelerator Table. More...
#include <accelerator_table.h>
Public Member Functions | |
Construction | |
CL_AcceleratorTable () | |
~CL_AcceleratorTable () | |
Attributes | |
CL_AcceleratorKey | get_accelerator (int id, bool shift=false, bool alt=false, bool ctrl=false) |
Returns a vector containing the accelerator keys defined for this table. More... | |
std::vector< CL_AcceleratorKey > | get_accelerators () |
Returns a vector containing the accelerator keys defined for this table. More... | |
Operations | |
void | add_accelerator (const CL_AcceleratorKey &accel) |
Add an accelerator table entry to the accelerator table. More... | |
void | process_message (CL_GUIMessage &msg) |
Check if the message is an accelerator key and invoke relevant accelerator callback. More... | |
GUI Accelerator Table.
CL_AcceleratorTable::CL_AcceleratorTable | ( | ) |
CL_AcceleratorTable::~CL_AcceleratorTable | ( | ) |
void CL_AcceleratorTable::add_accelerator | ( | const CL_AcceleratorKey & | accel) |
Add an accelerator table entry to the accelerator table.
CL_AcceleratorKey CL_AcceleratorTable::get_accelerator | ( | int | id, |
bool | shift = false , |
||
bool | alt = false , |
||
bool | ctrl = false |
||
) |
Returns a vector containing the accelerator keys defined for this table.
std::vector<CL_AcceleratorKey> CL_AcceleratorTable::get_accelerators | ( | ) |
Returns a vector containing the accelerator keys defined for this table.
void CL_AcceleratorTable::process_message | ( | CL_GUIMessage & | msg) |
Check if the message is an accelerator key and invoke relevant accelerator callback.