GGUI::PointerEvent struct

A pointer event, as a handler hears it.

Public functions

void Pass() const
Let the event bubble to the next ancestor with a handler for it.
void Used() const
OnRelease: the press was used for something else (a drag that moved a camera): no click and no context menu follow it.

Public variables

float X
pointer position, document space
float Y
pointer position, document space
float LocalX
relative to the top left of Current
float LocalY
relative to the top left of Current
float DX
OnDrag: movement since the last event.
float DY
OnDrag: movement since the last event.
NodeHandle Target
the element the event was first sent to
NodeHandle Current
the element whose handler is running
PointerButton Button
which button
uint8_t Clicks
1 = single, 2 = double
uint16_t Mods
UIMods.
bool bCancelled
OnRelease: the pointer was taken away rather than released.
bool bKeyboard
OnClick: sent by keyboard activation, so it has no position.
float WheelX
OnWheel: notches turned.
float WheelY
OnWheel: notches turned; away from the user is positive.