class new in Git master
PointerEventPointer event.
Base classes
- class InputEvent
- Base for input events.
Constructors, destructors, conversion operators
- PointerEvent(const PointerEvent&) deleted
- Copying is not allowed.
- PointerEvent(PointerEvent&&) deleted
- Moving is not allowed.
Public functions
- auto operator=(const PointerEvent&) -> PointerEvent& deleted
- Copying is not allowed.
- auto operator=(PointerEvent&&) -> PointerEvent& deleted
- Moving is not allowed.
- auto source() const -> PointerEventSource
- Pointer event source.
- auto pointer() const -> Pointer
- Pointer type that was pressed or released.
- auto isPrimary() const -> bool
- Whether the pointer is primary.
- auto id() const -> Long
- Pointer ID.
- auto position() const -> Vector2
- Position.
Function documentation
PointerEventSource Magnum:: Platform:: AbstractXApplication:: PointerEvent:: source() const
Pointer event source.
Included mainly for compatibility with touch-aware application implementations such as Sdl2Application, returns always PointerEventSource::
bool Magnum:: Platform:: AbstractXApplication:: PointerEvent:: isPrimary() const
Whether the pointer is primary.
Included mainly for compatibility with touch-aware application implementations such as Sdl2Application, returns always true
.
Long Magnum:: Platform:: AbstractXApplication:: PointerEvent:: id() const
Pointer ID.
Included mainly for compatibility with touch-aware application implementations such as Sdl2Application, returns always 0
.