class fwt::Event

sys::Obj
  fwt::Event

@Js

Source

Event models a user input event for callbacks.

button

Int? button

Source

Mouse button number pressed

consume

Void consume()

Source

Convenience for setting consumed to true.

consumed

Bool consumed := false

Source

Has this event been "consumed"? Once an event is consumed it ceases to propagate or be processed. Also see consume.

count

Int? count

Source

Number of mouse clicks.

data

Obj? data

Source

Event specific user data.

delta

Point? delta

Source

Delta value of event. For mouse wheel events this is the amount the mouse wheel has traveled.

id

EventId id := EventId.unknown

Source

Type identifier of the event. This field is always available.

index

Int? index

Source

Index for list based events. For table events this is the row index.

isPopupTrigger

Bool isPopupTrigger()

Source

Return if this a single click, mouse up on button 3

key

Key? key

Source

Key code and modifiers.

keyChar

Int? keyChar

Source

Unicode character represented by a key event.

offset

Int? offset

Source

Used as the zero based text offset for text and rich text widget events.

Menu? popup

Source

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

Source

Coordinate of event. For mouse events this is the mouse coordinate relative to the widget.

size

Int? size

Source

Number of characters for text and rich text widget events.

toStr

virtual override Str toStr()

Source

widget

Widget? widget

Source

Widget which generated the event. This will be null for model events.

window

Window? window()

Source

Convenience for widget?.window.