LuciadCPillar 2023.1.04
luciad::MouseMoveEvent Class Referencefinal

Mouse movement dedicated implementation of the luciad::IInputEvent. More...

#include <luciad/input/mouse/MouseEvents.h>

Inheritance diagram for luciad::MouseMoveEvent:
luciad::IInputEvent

Public Member Functions

 MouseMoveEvent (Coordinate location, ModifierKeys modifierKeys)
 Creates a move event for a mouse. More...
 
Coordinate getLocation () const noexcept
 
ModifierKeys getModifierKeys () const noexcept
 
- Public Member Functions inherited from luciad::IInputEvent
virtual ~IInputEvent ()=default
 

Detailed Description

Mouse movement dedicated implementation of the luciad::IInputEvent.

This class contains the mouse location and the modifiers if any.

Since
2020.1

Constructor & Destructor Documentation

◆ MouseMoveEvent()

luciad::MouseMoveEvent::MouseMoveEvent ( Coordinate  location,
ModifierKeys  modifierKeys 
)
inline

Creates a move event for a mouse.

Parameters
locationlocation The location of the event, defined in device independent pixels.
modifierKeysThe modifiers of the event.

Member Function Documentation

◆ getLocation()

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

◆ getModifierKeys()

ModifierKeys luciad::MouseMoveEvent::getModifierKeys ( ) const
inlinenoexcept
Returns
the modifiers of the event.