#include <hps.h>
|
static void | operator delete (void *in_ptr, size_t in_size) throw () |
|
static void * | operator new (size_t in_size) |
|
intptr_t | channel |
|
bool | consumable |
|
The TouchEvent class is the event generated for each touch action on a multi-touch device.
◆ Action
Enumeration of various actions touches can undergo for a TouchEvent.
Enumerator |
---|
TouchDown | A touch, or touches, has just gone down.
|
TouchUp | A touch, or touches, has just gone up.
|
Move | A touch, or touches, has just moved.
|
◆ TouchEvent() [1/5]
HPS::TouchEvent::TouchEvent |
( |
| ) |
|
|
inline |
The default constructor creates an uninitialized TouchEvent object.
◆ TouchEvent() [2/5]
This constructor creates a TouchEvent object for a given action without an array of Touches. Specifying TouchUp without an array of Touches clears tracked touches.
- Parameters
-
◆ TouchEvent() [3/5]
This constructor creates a TouchEvent object for a given action with an array of Touches. Specifying TouchUp with an empty an array of Touches clears tracked touches.
- Parameters
-
◆ TouchEvent() [4/5]
This constructor creates a TouchEvent object for a given action with an array of Touches. Specifying TouchUp with an empty an array of Touches clears tracked touches.
- Parameters
-
in_action | Action of this TouchEvent. |
in_touch_count | the number of Touches in the touch array. |
in_touches | An array or touches for this TouchEvent. |
in_modifier | The modifier keys for this TouchEvent. |
◆ TouchEvent() [5/5]
HPS::TouchEvent::TouchEvent |
( |
Event const & |
in_event | ) |
|
|
inline |
◆ Clone()
Event* HPS::TouchEvent::Clone |
( |
| ) |
const |
|
inlinevirtual |
◆ Drop()
virtual bool HPS::TouchEvent::Drop |
( |
Event const * |
in_that_event | ) |
const |
|
inlinevirtual |
Determines if this TouchEvent can be dropped in favor of the following touch event.
- Parameters
-
- Returns
- true if this event can be dropped, false otherwise.
Reimplemented from HPS::Event.
◆ Equals() [1/2]
virtual bool HPS::TouchEvent::Equals |
( |
InputEvent const & |
in_that | ) |
const |
|
inlinevirtual |
Check if the source object is equivalent to this object.
- Parameters
-
in_that | The source object to compare to this object. |
- Returns
- true if the objects are equivalent, false otherwise.
Reimplemented from HPS::InputEvent.
◆ Equals() [2/2]
bool HPS::TouchEvent::Equals |
( |
TouchEvent const & |
in_that | ) |
const |
|
inline |
Check if the source object is equivalent to this object.
- Parameters
-
in_that | The source object to compare to this object. |
- Returns
- true if the objects are equivalent, false otherwise.
◆ operator!=()
virtual bool HPS::TouchEvent::operator!= |
( |
TouchEvent const & |
in_that | ) |
const |
|
inlinevirtual |
Check if the source object is not equivalent to this object.
- Parameters
-
in_kit | The source object to compare to this object. |
- Returns
- true if the objects are not equivalent, false otherwise.
◆ operator==()
virtual bool HPS::TouchEvent::operator== |
( |
TouchEvent const & |
in_that | ) |
const |
|
inlinevirtual |
Check if the source object is equivalent to this object.
- Parameters
-
in_kit | The source object to compare to this object. |
- Returns
- true if the objects are equivalent, false otherwise.
The documentation for this class was generated from the following file: