The TouchState class represents the state of touches on a multi-touch device for a particular event. More...
Public Member Functions | |
override void | Dispose () |
TouchState () | |
The default constructor creates an empty TouchState object. More... | |
TouchState (HPS.TouchState in_that) | |
The copy constructor creates a new TouchState object that contains the same settings as the source TouchState. More... | |
override HPS.Type | ObjectType () |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object. More... | |
void | Assign (HPS.TouchState in_that) |
Copies the source TouchState into this TouchState. More... | |
override bool | Equals (System.Object obj) |
override int | GetHashCode () |
bool | Equals (HPS.TouchState in_that) |
Check if the source TouchState is equivalent to this TouchState. More... | |
void | Set (HPS.Key[] in_path, HPS.TouchEvent in_event, HPS.Touch[] in_touches, HPS.ModifierKeys in_modifiers) |
Sets the properties of this TouchState. More... | |
void | Set (HPS.Key[] in_path, HPS.TouchEvent in_event, HPS.Touch[] in_touches) |
Sets the properties of this TouchState. More... | |
HPS.TouchEvent | GetActiveEvent () |
Get the active event for this TouchState. This will throw an exception if there is no active action for this TouchState. More... | |
HPS.WindowKey | GetEventSource () |
Get the window which had focus when the touches represented by this TouchState underwent the active action. This will throw an exception if there is no event source for this TouchState. More... | |
HPS.Key[] | GetEventPath () |
Get the relevant list of keys up to the window which had focus when the touches represented by this TouchState underwent the active action. This will throw an exception if there is no event path for this TouchState. More... | |
ulong | GetTouchCount () |
Get the number of touches currently down in this TouchState. More... | |
HPS.Touch[] | GetTouches () |
Get the touches currently down in this TouchState. More... | |
HPS.ModifierKeys | GetModifierKeys () |
Get an object representing the state of modifier keys for this TouchState. More... | |
void | SetActiveEvent (HPS.TouchEvent in_event) |
Sets the active event for this TouchState. More... | |
void | SetEventPath (HPS.Key[] in_path) |
Sets the relevant list of keys up to the window which had focus for this touch event. More... | |
void | SetTouches (HPS.Touch[] in_touches) |
Sets the touches currently down in this TouchState. More... | |
void | SetModifierKeys (HPS.ModifierKeys in_modifiers) |
Sets an object representing the state of modifier keys for this TouchState. More... | |
![]() | |
IntPtr | GetClassID () |
Object (HPS.Object in_that) | |
The move constructor creates an Object by transferring the underlying impl of the rvalue reference to this Object thereby avoiding a copy and allocation. More... | |
HPS.Type | Type () |
This function returns the true type of the underlying object. This function is useful for finding the type of smart pointer objects that have been cast to more generic types. More... | |
virtual bool | Empty () |
Indicates whether this object has any values set on it. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS.Type in_mask) |
This function indicates whether this Object has the given Type mask. More... | |
IntPtr | GetInstanceID () |
Returns an identifier that can be used to identify which instance of a class an object is. Different keys and controls will return the same value if they are backed by the same database resource. More... | |
Static Public Member Functions | |
static bool | operator== (HPS.TouchState a, HPS.TouchState b) |
static bool | operator!= (HPS.TouchState a, HPS.TouchState b) |
![]() | |
static IntPtr | ClassID< T > () |
Protected Member Functions | |
override void | deleteCptr () |
![]() | |
virtual IntPtr | GetNonDirectorClassID () |
Additional Inherited Members | |
![]() | |
HandleRef | cptr |
HandleRef | scptr |
bool | cMemOwn |
The TouchState class represents the state of touches on a multi-touch device for a particular event.
|
inline |
The default constructor creates an empty TouchState object.
|
inline |
The copy constructor creates a new TouchState object that contains the same settings as the source TouchState.
in_that | The source <ref refid="class_h_p_s_1_1_touch_state" kindref="compound">TouchState</ref> to copy. |
|
inline |
Copies the source TouchState into this TouchState.
in_that | The source <ref refid="class_h_p_s_1_1_touch_state" kindref="compound">TouchState</ref> to copy. |
|
inline |
Check if the source TouchState is equivalent to this TouchState.
|
inline |
Get the active event for this TouchState. This will throw an exception if there is no active action for this TouchState.
|
inline |
Get the relevant list of keys up to the window which had focus when the touches represented by this TouchState underwent the active action. This will throw an exception if there is no event path for this TouchState.
|
inline |
Get the window which had focus when the touches represented by this TouchState underwent the active action. This will throw an exception if there is no event source for this TouchState.
|
inline |
Get an object representing the state of modifier keys for this TouchState.
|
inline |
Get the number of touches currently down in this TouchState.
|
inline |
Get the touches currently down in this TouchState.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS.Object.
|
inline |
Sets the properties of this TouchState.
in_path | The list of keys up to the window which had focus for this touch event. |
in_event | The touch event. |
in_touches | The touches down during this touch event. |
in_modifiers | The state of modifier keys for this touch event. |
|
inline |
Sets the properties of this TouchState.
in_path | The list of keys up to the window which had focus for this touch event. |
in_event | The touch event. |
in_touches | The touches down during this touch event. |
|
inline |
Sets the active event for this TouchState.
in_event | The action for this <ref refid="class_h_p_s_1_1_touch_state" kindref="compound">TouchState</ref>. |
|
inline |
Sets the relevant list of keys up to the window which had focus for this touch event.
in_path | The relevant list of keys up to the window which had focus when the touches represented by this <ref refid="class_h_p_s_1_1_touch_state" kindref="compound">TouchState</ref> underwent the active action. |
|
inline |
Sets an object representing the state of modifier keys for this TouchState.
in_modifiers | An object representing the state of modifier keys. |
|
inline |
Sets the touches currently down in this TouchState.
in_touches | The list of touches. |