Implementation of luciad::IInputEvent
that represents a click event.
More...
#include <luciad/input/IInputEvent.h>
Implementation of luciad::IInputEvent
that represents a click event.
This class contains the location and the click count. The click count is reset if the interval between two clicks exceeds luciad::MouseGestureRecognizer::getMultiClickInterval
.
- Since
- 2020.1
◆ ClickEvent() [1/2]
Creates an event representing a click.
- Parameters
-
location | The location of the event, defined in device independent pixels |
clickCount | The number of clicks. |
modifierKeys | The modifiers of the event. |
- Since
- 2022.0
◆ ClickEvent() [2/2]
luciad::ClickEvent::ClickEvent |
( |
Coordinate |
location, |
|
|
size_t |
clickCount |
|
) |
| |
|
inline |
Creates an event representing a click.
- Parameters
-
◆ getClickCount()
size_t luciad::ClickEvent::getClickCount |
( |
| ) |
const |
|
inlinenoexcept |
◆ getLocation()
Coordinate luciad::ClickEvent::getLocation |
( |
| ) |
const |
|
inlinenoexcept |
Returns the position of the event.
It is expressed in device independent pixel coordinates with top-left corner of the map being the (0,0) position.
- Returns
- the position of the event.
◆ getModifierKeys()
Returns the modifiers of the event.
- Returns
- the modifiers of the event.
- Since
- 2022.0