|
JX Application Framework
|
#include <JXKeyModifiers.h>
Public Member Functions | |
| JXKeyModifiers (const JXDisplay *display) | |
| JXKeyModifiers (const JXDisplay *display, const unsigned int state) | |
| bool | Available (const JIndex i) const |
| bool | GetState (const JIndex i) const |
| void | SetState (const JIndex i, const bool pushed) |
| bool | AllOff () const |
| unsigned int | GetState () const |
| void | SetState (const JXDisplay *display, const unsigned int state) |
| void | Clear () |
| bool | key (const JIndex i) const |
| bool | shift () const |
| bool | shiftLock () const |
| bool | numLock () const |
| bool | scrollLock () const |
| bool | control () const |
| bool | meta () const |
| bool | alt () const |
| bool | super () const |
| bool | hyper () const |
| void | ToggleState (const JIndex i) |
Static Public Member Functions | |
| static bool | AllOff (const JXDisplay *display, const unsigned int state) |
| static bool | GetState (const JXDisplay *display, const unsigned int state, const JIndex i) |
| static unsigned int | SetState (const JXDisplay *display, const unsigned int state, const JIndex i, const bool pushed) |
| static unsigned int | ToggleState (const JXDisplay *display, const unsigned int state, const JIndex i) |
Class to represent the states of the modifiers keys that X defines.
| JXKeyModifiers::JXKeyModifiers | ( | const JXDisplay * | display | ) |
| JXKeyModifiers::JXKeyModifiers | ( | const JXDisplay * | display, |
| const unsigned int | state | ||
| ) |
| bool JXKeyModifiers::AllOff | ( | ) | const |
|
inlinestatic |
|
inline |
Returns true if the specified modifier key is available.
| void JXKeyModifiers::Clear | ( | ) |
|
inline |
| unsigned int JXKeyModifiers::GetState | ( | ) | const |
Return the state as a bit vector.
|
static |
Get the state of the given key in the given bit vector.
|
inline |
|
inline |
|
inline |
|
inline |
Set the state of the specified key.
| void JXKeyModifiers::SetState | ( | const JXDisplay * | display, |
| const unsigned int | state | ||
| ) |
Set the state of all the keys.
|
static |
Set the state of the given key in the given bit vector.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |