|
Milo
0.1
Milo:EquationManipulationProgram
|
#include <ui.h>
Public Member Functions | |
Constructors | |
| KeyEvent (Keyboard key, enum Modifiers md=NO_MOD) | |
| KeyEvent (char key, enum Modifiers md=NO_MOD) | |
| KeyEvent (const std::string &key) | |
| constexpr | KeyEvent (const KeyEvent &e) |
KeyEvent class accessors | |
| Keyboard | getKey () const |
| enum Modifiers | getModifiers () const |
| bool | noMod () const |
| bool | shiftMod () const |
| bool | altMod () const |
| operator bool () const | |
Help member functions | |
| std::size_t | hash () const |
| bool | equals (const KeyEvent e) const |
| KeyEvent & | operator= (const KeyEvent &e) |
| std::string | toString () const |
Private Attributes | |
| Keyboard | m_key |
| Key code. | |
| enum Modifiers | m_mod |
| Modifiers state. | |
Milo UI Key Event. All milo UI key events are uniquely stored in this class. It is designed to uniquely designate an event for the unordered map of events to function calls.
Universal event constructor.
| key | Key code. |
| m | Modifiers for key. |
|
inline |
Default key event constructor. Construct an event for ascii code with no modifier keys.
| key | Ascii character. |
| UI::KeyEvent::KeyEvent | ( | const std::string & | key | ) |
Key event constructor that reads key event from string of format [[[CTRL]_ALT]_SHIFT]-letter.
|
inline |
Copy constructor that can be a constexpr
|
inline |
Check key event for alt key modifier.
|
inline |
Return true is this key event is equal to parameter
| e | Key event to compare |
|
inline |
|
inline |
|
inline |
Calculate hash for this class object. Used by unordered map.
|
inline |
Check key event for no key modifiers.
|
inline |
Return true if valid key
Assign value of key event paramter
| e | Key event to assign |
|
inline |
Check key event for shift key modifier.
| string KeyEvent::toString | ( | ) | const |
Create string representing event.
1.8.11