|
utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
Mouse motion event. More...
#include <headers/utility/event/mouse_motion_event.hpp>


Classes | |
| class | Factory |
| Factory for creating MouseMotionEvent instances. More... | |
Public Types | |
| using | MousePosition = math::Vector2F |
Public Member Functions | |
| MouseMotionEvent (void) | |
| Default constructor. | |
| ~MouseMotionEvent (void) override | |
| Default destructor. | |
| MouseMotionEvent & | setPosition (const MousePosition &position) noexcept |
| Set the current mouse position. | |
| MousePosition | getPosition (void) const noexcept |
| Get the current mouse position. | |
Public Member Functions inherited from utility::event::Event | |
| Event (void)=default | |
| Default constructor. | |
| virtual | ~Event (void)=default |
| Virtual destructor. | |
Mouse motion event.
Represents mouse movement with position.
Definition at line 40 of file mouse_motion_event.hpp.
2D mouse position type
Definition at line 43 of file mouse_motion_event.hpp.
|
noexcept |
Get the current mouse position.
Definition at line 53 of file mouse_motion_event.cpp.
|
noexcept |
Set the current mouse position.
| position | The mouse position as a 2D vector (x, y). |
Definition at line 46 of file mouse_motion_event.cpp.