PointerEvent struct
#include <Jazz2/UI/Windows/Element.h>
A pointer — the mouse, a finger or a virtual cursor — over the interface.
Public variables
- Vector2f Pos
- Position in pixels of the screen.
- MouseButton Button
- Button that was pressed or released.
-
std::
int32_t Clicks - Number of clicks in a row, 2 for a double click.
- Vector2f Wheel
- Scrolled distance, positive is up or right.
-
std::
int32_t Modifiers - Modifier keys held.
-
std::
uint32_t WindowId - Window the pointer is over, 0 for the main one, see Surface::
IsDetached().
Variable documentation
std:: uint32_t Jazz2:: UI:: Windows:: PointerEvent:: WindowId
Window the pointer is over, 0 for the main one, see Surface::
The position is relative to the main window even over another window, so it can be outside of it.