LuciadCPillar 2023.1.03
luciad::TouchLongPressEvent Class Reference

Implementation of luciad::IInputEvent representing a long press touch event. More...

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

Inheritance diagram for luciad::TouchLongPressEvent:
luciad::IInputEvent

Public Member Functions

 TouchLongPressEvent (Coordinate location, EventStatus status)
 Creates a long press event. More...
 
Coordinate getLocation () const
 
EventStatus getStatus () const
 
- Public Member Functions inherited from luciad::IInputEvent
virtual ~IInputEvent ()=default
 

Detailed Description

Implementation of luciad::IInputEvent representing a long press touch event.

This class contains the location of the touch input and the status of the event.

Since
2022.0

Constructor & Destructor Documentation

◆ TouchLongPressEvent()

luciad::TouchLongPressEvent::TouchLongPressEvent ( Coordinate  location,
EventStatus  status 
)
inlineexplicit

Creates a long press event.

Parameters
locationthe long press location, defined in device independent pixels
statusthe status of the event.

Member Function Documentation

◆ getLocation()

Coordinate luciad::TouchLongPressEvent::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.

◆ getStatus()

EventStatus luciad::TouchLongPressEvent::getStatus ( ) const
inline
Returns
the status of the event.