LuciadCPillar 2023.1.04
luciad::TouchUpEvent Class Reference

Implementation of luciad::IInputEvent that represents a pointer being released from a touch surface. More...

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

Inheritance diagram for luciad::TouchUpEvent:
luciad::IInputEvent

Public Member Functions

 TouchUpEvent (Coordinate location, size_t id)
 Creates an event representing a pointer being released from 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 being released from a touch surface.

This class contains the location of the touch point and its identifier.

Since
2022.0

Constructor & Destructor Documentation

◆ TouchUpEvent()

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

Creates an event representing a pointer being released from a touch surface.

Parameters
locationThe pointer location, defined in device independent pixels.
idThe touch device ID

Member Function Documentation

◆ getId()

size_t luciad::TouchUpEvent::getId ( ) const
inline
Returns
The touch device ID, the finger index for example.

◆ getLocation()

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