Event models a user input event for callbacks.
Slots
-
Int? buttonMouse button number pressed
- consumeSource
-
Void consume()Convenience for setting consumed to true.
- consumedSource
-
Bool consumed := falseHas this event been "consumed"? Once an event is consumed it ceases to propagate or be processed. Also see consume.
- countSource
-
Int? countNumber of mouse clicks.
- dataSource
-
Obj? dataEvent specific user data.
- idSource
-
EventId idType identifier of the event. This field is always available.
- indexSource
-
Int? indexIndex for list based events. For table events this is the row index.
- keySource
-
Key? keyKey code and modifiers.
- keyCharSource
-
Int? keyCharUnicode character represented by a key event.
- offsetSource
-
Int? offsetUsed as the zero based text offset for text and rich text widget events.
- popupSource
-
Menu? popupIf 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.
- posSource
-
Point? posCoordinate of event. For mouse events this is the mouse coordinate relative to the widget.
- sizeSource
-
Int? sizeNumber of characters for text and rich text widget events.
- toStrSource
-
override Str toStr()Overrides sys::Obj.toStr
Doc inherited from sys::Obj.toStr
Return a string representation of this object.
- widgetSource
-
Widget? widgetWidget which generated the event. This will be null for model events.
- windowSource
-
Window? window()Convenience for
widget?.window.