JX Application Framework
|
#include <JXButtonStates.h>
Public Member Functions | |
JXButtonStates () | |
JXButtonStates (const unsigned int state) | |
bool | GetState (const JIndex i) const |
void | SetState (const JIndex i, const bool pushed) |
bool | AllOff () const |
unsigned int | GetState () const |
void | SetState (const unsigned int state) |
void | Clear () |
bool | button (const JIndex i) const |
bool | left () const |
bool | middle () const |
bool | right () const |
void | ToggleState (const JIndex i) |
Static Public Member Functions | |
static bool | AllOff (const unsigned int state) |
static bool | GetState (const unsigned int state, const JIndex i) |
static unsigned int | SetState (const unsigned int state, const JIndex i, const bool pushed) |
static unsigned int | ToggleState (const unsigned int state, const JIndex i) |
Class to represent the states of the mouse buttons that X defines.
JXButtonStates::JXButtonStates | ( | ) |
JXButtonStates::JXButtonStates | ( | const unsigned int | state | ) |
bool JXButtonStates::AllOff | ( | ) | const |
|
inlinestatic |
void JXButtonStates::Clear | ( | ) |
unsigned int JXButtonStates::GetState | ( | ) | const |
Return the state as a bit vector.
Get the state of the given key in the given bit vector.
|
inline |
|
inline |
|
inline |
Set the state of the specified button.
void JXButtonStates::SetState | ( | const unsigned int | state | ) |
Set the state of all the keys.
|
static |
Set the state of the given button in the given bit vector.
|
inline |
|
inlinestatic |