class

Tui::Event

Inherits Reference / Object

Instance methods

at_target?

Check if event is at target

Source
bubbling?

Check if event is in bubble phase

Source
capturing?

Check if event is in capture phase

Source
current_target

Current widget receiving the event (changes during propagation)

Source
current_target=(current_target : Widget | Nil)

Current widget receiving the event (changes during propagation)

Source
default_prevented=(default_prevented : Bool)
Source
default_prevented?
Source
immediate_stopped=(immediate_stopped : Bool)
Source
immediate_stopped?
Source
phase
Source
phase=(phase : Phase)
Source
prevent_default!

Prevent default action

Source
propagation_stopped=(propagation_stopped : Bool)
Source
propagation_stopped?
Source
reset!

Reset event state for reuse (e.g., in event pools)

Source
stop!

Legacy compatibility - maps to stop_propagation!

Source
stop_immediate!

Stop immediately (no more handlers at all)

Source
stop_propagation!

Stop propagation to next widget (but current widget's other handlers still run)

Source
stopped?

Legacy compatibility - maps to propagation_stopped?

Source
target

Target widget (set during dispatch)

Source
target=(target : Widget | Nil)

Target widget (set during dispatch)

Source

Nested types