This is a snapshot of a work-in-progress documentation theme. If you feel lost, miss something, or want to see the original Doxygen docs instead, head over to the archived version of this documentation page.

Magnum::Platform::Sdl2Application::MouseMoveEvent class

Mouse move event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: Uint32 { Left = SDL_BUTTON_LMASK, Middle = SDL_BUTTON_MMASK, Right = SDL_BUTTON_RMASK, X1 = SDL_BUTTON_X1MASK, X2 = SDL_BUTTON_X2MASK }
Mouse button.
using Buttons = Containers::EnumSet<Button>
Set of mouse buttons.

Public functions

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

Enum documentation

enum class Magnum::Platform::Sdl2Application::MouseMoveEvent::Button: Uint32

Mouse button.

Enumerators
Left

Left button

Middle

Middle button

Right

Right button

X1

First extra button (e.g. wheel left)

X2

Second extra button (e.g. wheel right)

Typedef documentation

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

Set of mouse buttons.

Function documentation

Vector2i Magnum::Platform::Sdl2Application::MouseMoveEvent::relativePosition() const constexpr

Relative position.

Position relative to previous event.

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

Modifiers.

Lazily populated on first request.