72 int x()
const {
return _pos.x(); }
75 int y()
const {
return _pos.y(); }
Base class for the event system.
Definition event.h:29
Dynamic array container wrapping std::vector.
Definition list.h:40
Event delivered for mouse input.
Definition mouseevent.h:23
uint8_t buttons() const
Returns the bitmask of all currently pressed buttons.
Definition mouseevent.h:87
uint8_t modifiers() const
Returns the modifier flags.
Definition mouseevent.h:84
const Point2Di32 & pos() const
Returns the mouse position (column, row).
Definition mouseevent.h:69
static const Type Mouse
Event type ID for MouseEvent.
Definition mouseevent.h:26
static String buttonName(Button button)
Returns a human-readable name for the given button.
MouseEvent(const Point2Di32 &pos, Button button, Action action, uint8_t modifiers=NoModifier, uint8_t buttons=0)
Constructs a MouseEvent.
Definition mouseevent.h:63
static String buttonsString(uint8_t buttons)
Returns a human-readable string for a button bitmask (e.g. "Left Right").
Button
Mouse button flags (bit values for combining).
Definition mouseevent.h:29
Modifier
Modifier flags (same as KeyEvent).
Definition mouseevent.h:47
int x() const
Returns the X coordinate (column).
Definition mouseevent.h:72
Action
Mouse action enumeration.
Definition mouseevent.h:37
int y() const
Returns the Y coordinate (row).
Definition mouseevent.h:75
Action action() const
Returns the mouse action.
Definition mouseevent.h:81
Button button() const
Returns the mouse button.
Definition mouseevent.h:78
static String actionName(Action action)
Returns a human-readable name for the given action.
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19