guit  0.1
 All Classes Functions Variables Typedefs Enumerations Friends
Public Member Functions | Static Public Attributes | List of all members
guit::GTrigger Class Reference

Specifies when conditional statements are executed. More...

Inherited by guit::GExprTrigger.

Public Member Functions

 GTrigger (GEventType mask, Filter filter)
 Constr. More...
 
 GTrigger (GTrigger const &from)
 Constr.
 
GEventType eventMask () const
 Returns the event mask.
 
Filter filter () const
 Returns the filter.
 
virtual bool operator== (GTrigger const &other) const
 Returns true if the triggers are equivalent.
 
class GGuardoperator[] (GExprBool const &guard_expr)
 Returns a guard (see GGuard).
 

Static Public Attributes

static GTrigger none
 no action.
 
static GTrigger action
 default action (meaning depends on gadget).
 
static GTrigger done
 the action was done (meaning depends on gadget).
 
static GTrigger change
 the value has changed.
 
static GTrigger changing
 the value is going to be changed.
 
static GTrigger checked
 the gadget was checked (selected).
 
static GTrigger unchecked
 the gadget was unchecked (deselected).
 
static GTrigger click
 click on a gadget.
 
static GTrigger dblclick
 double click on a gadget.
 
static GTrigger mousedown
 mouse press on a gadget. More...
 
static GTrigger mouseup
 mouse release on a gadget. More...
 
static GTrigger mousedrag
 mouse moved with at least one button pressed. More...
 
static GTrigger mousemove
 mouse moved with no button pressed. More...
 
static GTrigger mouseover
 the mouse enters a gadget. More...
 
static GTrigger mouseout
 the mouse leaves a gadget. More...
 
static GTrigger wheel
 the mouse wheel rolls up or down. More...
 
static GTrigger keydown
 a key was pressed. More...
 
static GTrigger keyup
 a key was released. More...
 
static GTrigger keytype
 text was entered. More...
 
static GTrigger caret
 the text caret was moved. More...
 
static GTrigger touch
 a touch gesture was performed. More...
 
static GTrigger gesture
 a multitouch gesture was performed. More...
 
static GTrigger focus
 the gadget got the keyboard focus.
 
static GTrigger focusout
 the gadget left the keyboard focus.
 
static GTrigger enabled
 the gadget was enabled.
 
static GTrigger disabled
 the gadget was disabled.
 
static GTrigger show
 the gadget was shown.
 
static GTrigger hide
 the gadget was hidden.
 
static GTrigger move
 the gadget was moved.
 
static GTrigger init
 the gadget was initialized (eg the CSS was set).
 
static GTrigger resize
 the gadget was resized.
 
static GTrigger paint
 the gadget was repaint.
 
static GTrigger add
 an element (prop, callback, gadget) was added to this gadget.
 
static GTrigger remove
 an element (prop, callback, gadget) was removed from this gadget.
 
static GTrigger copy
 text was copied.
 
static GTrigger cut
 text was cut.
 
static GTrigger paste
 text was pasted.
 
static GTrigger user
 custom user event.
 
static GTrigger changeaction
 impl.
 

Detailed Description

Specifies when conditional statements are executed.

See Also
GCond.

Constructor & Destructor Documentation

guit::GTrigger::GTrigger ( GEventType  mask,
Filter  filter 
)
inline

Constr.

mask is an ORed mask of the event types need to be activated.

Member Data Documentation

GTrigger guit::GTrigger::mousedown
static

mouse press on a gadget.

if the gadget does not accept button events (e.g. Labels) the mousedown is sent to its parent.

GTrigger guit::GTrigger::mouseup
static

mouse release on a gadget.

the gadget that receives mouseup is the gadget that received mousedown

GTrigger guit::GTrigger::mousedrag
static

mouse moved with at least one button pressed.

the gadget that receives mousedrag is the gadget that received mousedown

GTrigger guit::GTrigger::mousemove
static

mouse moved with no button pressed.

the gadget that receives mousemove is the gadget beneath the mouse cursor.

Note
callbacks can also be added to mouse cursors (see GCursor).
GTrigger guit::GTrigger::mouseover
static

the mouse enters a gadget.

the gadget that receives mouseenter is the gadget that was entered.

GTrigger guit::GTrigger::mouseout
static

the mouse leaves a gadget.

the gadget that receives mouseleave is the gadget that was exited.

GTrigger guit::GTrigger::wheel
static

the mouse wheel rolls up or down.

the gadget that receives wheel is the closest gadget beneath the mouse cursor that accepts wheel events.

GTrigger guit::GTrigger::keydown
static

a key was pressed.

the gadget that receives keydown is the gadget that has the focus.

GTrigger guit::GTrigger::keyup
static

a key was released.

the gadget that receives keydup is the gadget that has the focus.

GTrigger guit::GTrigger::keytype
static

text was entered.

the gadget that receives keytype is the gadget that has the focus.

GTrigger guit::GTrigger::caret
static

the text caret was moved.

the gadget that receives caret is the gadget that has the focus.

GTrigger guit::GTrigger::touch
static

a touch gesture was performed.

the main window receives the event.

GTrigger guit::GTrigger::gesture
static

a multitouch gesture was performed.

the main window receives the event.


The documentation for this class was generated from the following files: