Magnum::Platform::GlfwApplication::MouseMoveEvent class

Mouse move event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: UnsignedInt { Left = 1 << GLFW_MOUSE_BUTTON_LEFT, Middle = 1 << GLFW_MOUSE_BUTTON_MIDDLE, Right = 1 << GLFW_MOUSE_BUTTON_RIGHT }
Mouse button.
using Buttons = Containers::EnumSet<Button>
Set of mouse buttons.

Public functions

auto buttons() -> Buttons
Mouse buttons.
auto position() const -> Vector2i
Position.
auto relativePosition() const -> Vector2i new in 2019.10
Relative position.
auto modifiers() -> Modifiers
Modifiers.

Enum documentation

enum class Magnum::Platform::GlfwApplication::MouseMoveEvent::Button: UnsignedInt

Mouse button.

Enumerators
Left

Left button

Middle

Middle button

Right

Right button

Typedef documentation

typedef Containers::EnumSet<Button> Magnum::Platform::GlfwApplication::MouseMoveEvent::Buttons

Set of mouse buttons.

Function documentation

Buttons Magnum::Platform::GlfwApplication::MouseMoveEvent::buttons()

Mouse buttons.

Lazily populated on first request.

Vector2i Magnum::Platform::GlfwApplication::MouseMoveEvent::relativePosition() const new in 2019.10

Relative position.

Position relative to previous move event. Unlike Sdl2Application, GLFW doesn't provide relative position directly, so this is calculated explicitly as a delta from previous move event position.

Modifiers Magnum::Platform::GlfwApplication::MouseMoveEvent::modifiers()

Modifiers.

Lazily populated on first request.