Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBWidgetEventMultiGesture is a event of type EVENT_TYPE_MULTI_GESTURE It contains the corresponding values for MultiGesture events. More...
#include <tb_widgets.h>
Public Member Functions | |
TBOBJECT_SUBCLASS (TBWidgetEventMultiGesture, TBWidgetEvent) | |
TBWidgetEventMultiGesture (int target_x, int target_y, float cx, float cy, float dTheta, float dDist, uint16_t numFingers) | |
Public Member Functions inherited from tb::TBWidgetEvent | |
TBOBJECT_SUBCLASS (TBWidgetEvent, TBTypedObject) | |
TBWidgetEvent (EVENT_TYPE type) | |
TBWidgetEvent (EVENT_TYPE type, int x, int y, bool touch, MODIFIER_KEYS modifierkeys=TB_MODIFIER_NONE) | |
int | GetCountCycle (int max) |
The count value may be 1 to infinity. More... | |
bool | IsPointerEvent () const |
bool | IsKeyEvent () const |
Public Member Functions inherited from tb::TBTypedObject | |
virtual bool | IsOfTypeId (const TB_TYPE_ID type_id) const |
Returns true if the class or the base class matches the type id. | |
template<class T > | |
T * | SafeCastTo () const |
Returns this object as the given type or nullptr if it's not that type. More... | |
template<class T > | |
bool | IsOfType () const |
Return true if this object can safely be casted to the given type. More... | |
virtual const char * | GetClassName () const |
Get the classname of the object. More... | |
Public Attributes | |
float | center_x |
the normalized center of gesture | |
float | center_y |
the normalized center of gesture | |
float | dTheta |
the amount that the fingers rotated during this motion | |
float | dDist |
the amount that the fingers pinched during this motion | |
Public Attributes inherited from tb::TBWidgetEvent | |
TBWidget * | target |
The widget that invoked the event. | |
EVENT_TYPE | type |
Which type of event. | |
int | target_x |
X position in target widget. Set for all pointer events, click and wheel. | |
int | target_y |
Y position in target widget. Set for all pointer events, click and wheel. | |
int | delta_x |
Set for EVENT_TYPE_WHEEL. Positive is a turn right. | |
int | delta_y |
Set for EVENT_TYPE_WHEEL. Positive is a turn against the user. | |
int | count |
1 for all events, but increased for POINTER_DOWN event to 2 for doubleclick, 3 for tripleclick and so on. More... | |
int | key |
for EVENT_TYPE_KEY_* the key, or 0 if key is in special_key; for EVENT_TYPE_FINGER_* is the finger number. More... | |
SPECIAL_KEY | special_key |
MODIFIER_KEYS | modifierkeys |
TBID | ref_id |
Sometimes (when documented) events have a ref_id (The id that caused this event) | |
bool | touch |
Set for pointer events. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from tb::TBTypedObject | |
template<class T > | |
static TB_TYPE_ID | GetTypeId () |
A static template method that returns a unique id for each type. More... | |
TBWidgetEventMultiGesture is a event of type EVENT_TYPE_MULTI_GESTURE It contains the corresponding values for MultiGesture events.