|
|
Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBWidgetEventFinger is a subclass of TBWidgetEvent It is triggered by finger event such as up down or move. More...
#include <tb_widgets.h>
Public Member Functions | |
| TBOBJECT_SUBCLASS (TBWidgetEventFinger, TBWidgetEvent) | |
| TBWidgetEventFinger (EVENT_TYPE type, int target_x, int target_y, float x, float y, float dx, float dy, int fingerid) | |
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 | x |
| the x-location of the touch event, normalized [0 1] | |
| float | y |
| the y-location of the touch event, normalized [0 1] | |
| float | dx |
| the distance moved in the x direction, normalized [-1 1] | |
| float | dy |
| the distance moved in the y direction, normalized [-1 1] | |
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... | |
TBWidgetEventFinger is a subclass of TBWidgetEvent It is triggered by finger event such as up down or move.
type is one of: EVENT_TYPE_FINGER_DOWN, EVENT_TYPE_FINGER_UP, EVENT_TYPE_FINGER_MOVE,