LuciadCPillar 2023.1.04
luciad::MouseDragEvent Class Referencefinal

Specialization of the luciad::DragEvent for the mouse. More...

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

Inheritance diagram for luciad::MouseDragEvent:
luciad::DragEvent luciad::IInputEvent

Public Member Functions

 MouseDragEvent (Coordinate location, EventStatus status, Coordinate startLocation, ModifierKeys modifierKeys, MouseButton mouseButton)
 Create a drag event for a mouse. More...
 
ModifierKeys getModifierKeys () const noexcept override
 
MouseButton getMouseButton () const noexcept
 
- Public Member Functions inherited from luciad::DragEvent
 DragEvent (Coordinate location, EventStatus status, Coordinate startLocation)
 Creates a drag event. More...
 
Coordinate getLocation () const noexcept
 
virtual ModifierKeys getModifierKeys () const noexcept
 
Coordinate getStartLocation () const noexcept
 
EventStatus getStatus () const noexcept
 
- Public Member Functions inherited from luciad::IInputEvent
virtual ~IInputEvent ()=default
 

Detailed Description

Specialization of the luciad::DragEvent for the mouse.

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

Since
2020.1

Constructor & Destructor Documentation

◆ MouseDragEvent()

luciad::MouseDragEvent::MouseDragEvent ( Coordinate  location,
EventStatus  status,
Coordinate  startLocation,
ModifierKeys  modifierKeys,
MouseButton  mouseButton 
)
inline

Create a drag event for a mouse.

Parameters
locationThe current mouse location, defined in device independent pixels.
statusThe event status.
startLocationThe mouse location of the first event for this gesture.
modifierKeysThe modifiers of the event.
mouseButtonThe mouse button of the event.

Member Function Documentation

◆ getModifierKeys()

ModifierKeys luciad::MouseDragEvent::getModifierKeys ( ) const
inlineoverridevirtualnoexcept
Returns
the modifiers of the event.

Reimplemented from luciad::DragEvent.

◆ getMouseButton()

MouseButton luciad::MouseDragEvent::getMouseButton ( ) const
inlinenoexcept
Returns
the mouse button of the event.