Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a keyboard shortcut, usually for a menu item. More...
#include <omGUIInputKeyShortcut.h>
Public Member Functions | |
KeyShortcut () | |
Create a default keyboard shortcut which doesn't correspond to any keyboard key. More... | |
KeyShortcut (UTF32Char newCharacter) | |
Create a keyboard shortcut for the specified character and the system default modifier(s). More... | |
KeyShortcut (UTF32Char newCharacter, Modifiers::Flag modifier) | |
Create a keyboard shortcut using the specified character and modifier. More... | |
KeyShortcut (UTF32Char newCharacter, Modifiers::Flag modifier1, Modifiers::Flag modifier2) | |
Create a keyboard shortcut using the specified character and 2 modifiers. More... | |
KeyShortcut (UTF32Char newCharacter, Modifiers::Flag modifier1, Modifiers::Flag modifier2, Modifiers::Flag modifier3) | |
Create a keyboard shortcut using the specified character and 3 modifiers. More... | |
UTF32Char | getCharacter () const |
Return the character which this keyboard shortcut applies to. More... | |
void | setCharacter (UTF32Char newCharacter) |
Set the character which this keyboard shortcut applies to. More... | |
const Modifiers & | getModifiers () const |
Return an object representing the different modifier keys associated with this keyboard shortcut. More... | |
Bool | hasModifiers () const |
Return whether or not this keyboard shortcut has any modifier keys set. More... | |
Bool | hasModifier (Modifiers::Flag newModifier) const |
Return whether or not this keyboard shortcut has the specified modifier key set. More... | |
void | setModifier (Modifiers::Flag newModifier, Bool isSet=true) |
Set whether or not the specified key modifier is set for this keyboard shortcut. More... | |
Bool | operator== (const KeyShortcut &other) const |
Return whether or not this keyboard shortcut is exactly equal to another. More... | |
Bool | operator!= (const KeyShortcut &other) const |
Return whether or not this keyboard shortcut is not equal to another. More... | |
Bool | isValid () const |
Return whether or not this keyboard shortcut is valid and properly formed. More... | |
UTF8String | toString () const |
Convert this keyboard shortcut to a human-readable string representation. More... | |
Static Public Attributes | |
static const Modifiers::Flag | DEFAULT_MODIFIER = Modifiers::CONTROL |
The default modifier for the current system platform. More... | |
A class that represents a keyboard shortcut, usually for a menu item.
This class describes the keys that the user must press together in order to execute a keyboard shortcut. Typically, keyboard shortcuts will be associated with specific menu items, allowing the user to quickly perform basic operations such as copy and paste without having to use the mouse.
|
inline |
Create a default keyboard shortcut which doesn't correspond to any keyboard key.
|
inline |
Create a keyboard shortcut for the specified character and the system default modifier(s).
|
inline |
Create a keyboard shortcut using the specified character and modifier.
|
inline |
Create a keyboard shortcut using the specified character and 2 modifiers.
|
inline |
Create a keyboard shortcut using the specified character and 3 modifiers.
|
inline |
Return the character which this keyboard shortcut applies to.
|
inline |
Set the character which this keyboard shortcut applies to.
|
inline |
Return an object representing the different modifier keys associated with this keyboard shortcut.
|
inline |
Return whether or not this keyboard shortcut has any modifier keys set.
|
inline |
Return whether or not this keyboard shortcut has the specified modifier key set.
|
inline |
Set whether or not the specified key modifier is set for this keyboard shortcut.
|
inline |
Return whether or not this keyboard shortcut is exactly equal to another.
|
inline |
Return whether or not this keyboard shortcut is not equal to another.
|
inline |
Return whether or not this keyboard shortcut is valid and properly formed.
UTF8String om::gui::input::KeyShortcut::toString | ( | ) | const |
Convert this keyboard shortcut to a human-readable string representation.
The representation returned may differ, depending on the system platform.
|
static |
The default modifier for the current system platform.