#include <action.h>
Public Types | |
enum | StateEnum { StateInitKey = 1 << 0, StateTermKey = 1 << 1, StateInitButton = 1 << 2, StateTermButton = 1 << 3, StateInitBell = 1 << 4, StateInitEdge = 1 << 5, StateTermEdge = 1 << 6, StateInitEdgeDnd = 1 << 7, StateTermEdgeDnd = 1 << 8, StateCommit = 1 << 9, StateCancel = 1 << 10, StateAutoGrab = 1 << 11, StateNoEdgeDelay = 1 << 12 } |
enum | BindingTypeEnum { BindingTypeNone = 0, BindingTypeKey = 1 << 0, BindingTypeButton = 1 << 1, BindingTypeEdgeButton = 1 << 2 } |
Type of event a CompAction is bound to. More... | |
typedef unsigned int | State |
typedef unsigned int | BindingType |
typedef boost::function< bool(CompAction *, State, CompOption::Vector &) | CallBack ) |
Public Member Functions | |
CompAction (const CompAction &) | |
CallBack | initiate () |
CallBack | terminate () |
void | setInitiate (const CallBack &initiate) |
void | setTerminate (const CallBack &terminate) |
State | state () |
BindingType | type () |
KeyBinding & | key () |
void | setKey (const KeyBinding &key) |
ButtonBinding & | button () |
void | setButton (const ButtonBinding &button) |
unsigned int | edgeMask () |
void | setEdgeMask (unsigned int edge) |
bool | bell () |
void | setBell (bool bell) |
void | setState (State state) |
void | copyState (const CompAction &action) |
bool | operator== (const CompAction &val) |
CompAction & | operator= (const CompAction &action) |
bool | keyFromString (const CompString &str) |
bool | buttonFromString (const CompString &str) |
bool | edgeMaskFromString (const CompString &str) |
CompString | keyToString () |
CompString | buttonToString () |
CompString | edgeMaskToString () |
Static Public Member Functions | |
static CompString | edgeToString (unsigned int edge) |
Classes | |
class | ButtonBinding |
class | KeyBinding |
Type of event a CompAction is bound to.