class fwt::Event
sys::Obj fwt::Event
@Js
Event models a user input event for callbacks.
-
Int? buttonMouse button number pressed
- consume
-
Void consume()Convenience for setting
consumedto true. - consumed
-
Bool consumed := falseHas this event been "consumed"? Once an event is consumed it ceases to propagate or be processed. Also see
consume. - count
-
Int? countNumber of mouse clicks.
- data
-
Obj? dataEvent specific user data.
- delta
-
Point? deltaDelta value of event. For mouse wheel events this is the amount the mouse wheel has traveled.
- id
-
EventId id := EventId.unknownType identifier of the event. This field is always available.
- index
-
Int? indexIndex for list based events. For table events this is the row index.
- isPopupTrigger
-
Bool isPopupTrigger()Return if this a single click, mouse up on button 3
- key
-
Key? keyKey code and modifiers.
- keyChar
-
Int? keyCharUnicode character represented by a key event.
- offset
-
Int? offsetUsed as the zero based text offset for text and rich text widget events.
- popup
-
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.
- pos
-
Point? posCoordinate of event. For mouse events this is the mouse coordinate relative to the widget.
- size
-
Int? sizeNumber of characters for text and rich text widget events.
- toStr
-
virtual override Str toStr() - widget
-
Widget? widgetWidget which generated the event. This will be null for model events.
- window
-
Window? window()Convenience for
widget?.window.