LuciadCPillar C# 2024.1.04
Luciad.Input.Touch.TouchPoint Struct Reference

Touch point that results from a user touch interaction. More...

Inheritance diagram for Luciad.Input.Touch.TouchPoint:

Public Member Functions

 TouchPoint (Coordinate location, TouchPointState state, uint id)
 Creates a touch point. More...
 
override bool Equals (object other)
 Equality comparison operator. More...
 
bool Equals (TouchPoint other)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator!= (TouchPoint lhs, TouchPoint rhs)
 
static bool operator== (TouchPoint lhs, TouchPoint rhs)
 

Properties

uint Id [get, set]
 The unique identifier of this touch point, valid until this touch point is released. More...
 
Coordinate Location [get]
 The screen location of the touch point, expressed in device independent pixels. More...
 
TouchPointState State [get]
 The current TouchPointState for this touch point. More...
 

Detailed Description

Touch point that results from a user touch interaction.

Since
2022.0

Constructor & Destructor Documentation

◆ TouchPoint()

Luciad.Input.Touch.TouchPoint.TouchPoint ( Coordinate  location,
TouchPointState  state,
uint  id 
)
inline

Creates a touch point.

Parameters
locationThe location of the touch point, defined in device independent pixels.
stateThe status of the touch point.
idThe touch device ID, such as an index assigned for each finger for example.

Member Function Documentation

◆ Equals() [1/2]

override bool Luciad.Input.Touch.TouchPoint.Equals ( object  other)
inline

Equality comparison operator.

Two touch points are equal if their id, state and location are the same.

Returns
true if the touch points are equal.

◆ Equals() [2/2]

bool Luciad.Input.Touch.TouchPoint.Equals ( TouchPoint  other)
inline

◆ GetHashCode()

override int Luciad.Input.Touch.TouchPoint.GetHashCode ( )
inline

◆ operator!=()

static bool Luciad.Input.Touch.TouchPoint.operator!= ( TouchPoint  lhs,
TouchPoint  rhs 
)
inlinestatic

◆ operator==()

static bool Luciad.Input.Touch.TouchPoint.operator== ( TouchPoint  lhs,
TouchPoint  rhs 
)
inlinestatic

Property Documentation

◆ Id

uint Luciad.Input.Touch.TouchPoint.Id
getset

The unique identifier of this touch point, valid until this touch point is released.

[get]

The unique identifier of this touch point, valid until this touch point is released.

◆ Location

Coordinate Luciad.Input.Touch.TouchPoint.Location
get

The screen location of the touch point, expressed in device independent pixels.

[get]

The screen location of the touch point, expressed in device independent pixels.

◆ State

TouchPointState Luciad.Input.Touch.TouchPoint.State
get

The current TouchPointState for this touch point.

[get]

The current TouchPointState for this touch point.