class fwt::Event
sys::Obj fwt::Event
@Js
Event models a user input event for callbacks.
-
Int? button
Mouse button number pressed
- consume
-
Void consume()
Convenience for setting
consumed
to true. - consumed
-
Bool consumed := false
Has this event been "consumed"? Once an event is consumed it ceases to propagate or be processed. Also see
consume
. - count
-
Int? count
Number of mouse clicks.
- data
-
Obj? data
Event specific user data.
- delta
-
Point? delta
Delta value of event. For mouse wheel events this is the amount the mouse wheel has traveled.
- id
-
EventId id := EventId.unknown
Type identifier of the event. This field is always available.
- index
-
Int? index
Index 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? key
Key code and modifiers.
- keyChar
-
Int? keyChar
Unicode character represented by a key event.
- offset
-
Int? offset
Used as the zero based text offset for text and rich text widget events.
- popup
-
Menu? popup
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.
- pos
-
Point? pos
Coordinate of event. For mouse events this is the mouse coordinate relative to the widget.
- size
-
Int? size
Number of characters for text and rich text widget events.
- toStr
-
virtual override Str toStr()
- widget
-
Widget? widget
Widget which generated the event. This will be null for model events.
- window
-
Window? window()
Convenience for
widget?.window
.