Event models a user input event for callbacks.
Mouse button number pressed
Convenience for setting
Bool consumed := false
Has this event been "consumed"? Once an event is consumed it ceases to propagate or be processed. Also see
Number of mouse clicks.
Event specific user data.
Delta value of event. For mouse wheel events this is the amount the mouse wheel has traveled.
EventId id := EventId.unknown
Type identifier of the event. This field is always available.
Index for list based events. For table events this is the row index.
Return if this a single click, mouse up on button 3
Key code and modifiers.
Unicode character represented by a key event.
Used as the zero based text offset for text and rich text widget events.
If this a popup event, then this field should be set to the menu item to open. Setting this field to a nonnull value implicitly consumes the event.
Coordinate of event. For mouse events this is the mouse coordinate relative to the widget.
Number of characters for text and rich text widget events.
virtual override Str toStr()
Widget which generated the event. This will be null for model events.