Magnum::Platform::GlfwApplication::ScrollEvent class new in Git master

Scroll event.

Base classes

class InputEvent
Base for input events.

Public functions

auto offset() const -> Vector2
Scroll offset.
auto position() -> Vector2
Position.
auto modifiers() -> GlfwApplication::Modifiers
Keyboard modifiers.

Function documentation

Vector2 Magnum::Platform::GlfwApplication::ScrollEvent::position()

Position.

May return fractional values for example on HiDPI systems where window size is smaller than actual framebuffer size. Use Math::round() to snap them to the nearest window pixel. Lazily populated on first request.

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

Keyboard modifiers.

Lazily populated on first request.