LuciadCPillar 2023.1.04
luciad::TouchDownEvent Class Reference

Implementation of luciad::IInputEvent that represents a pointer (typically a finger) being pressed on a touch surface. More...

#include <luciad/input/touch/TouchEvents.h>

Inheritance diagram for luciad::TouchDownEvent:
luciad::IInputEvent

Public Member Functions

 TouchDownEvent (Coordinate location, size_t id)
 Creates an event representing a point being pressed on a touch surface. More...
 
size_t getId () const
 
Coordinate getLocation () const
 
- Public Member Functions inherited from luciad::IInputEvent
virtual ~IInputEvent ()=default
 

Detailed Description

Implementation of luciad::IInputEvent that represents a pointer (typically a finger) being pressed on a touch surface.

This class contains the location of the touch point and an identifier assigned to it for as long as the touch point remains pressed.

Since
2022.0

Constructor & Destructor Documentation

◆ TouchDownEvent()

luciad::TouchDownEvent::TouchDownEvent ( Coordinate  location,
size_t  id 
)
inline

Creates an event representing a point being pressed on a touch surface.

Parameters
locationThe touch point location, defined in device independent pixels
idThe touch point identifier

Member Function Documentation

◆ getId()

size_t luciad::TouchDownEvent::getId ( ) const
inline
Returns
The touch point identifier, such as an index used per finger for example.

◆ getLocation()

Coordinate luciad::TouchDownEvent::getLocation ( ) const
inline
Returns
the location of the event, expressed in device independent pixel coordinates with top-left corner of the map being the (0,0) position.