TUI::Widget
Inherits Reference < Object
Constructors
Instance methods
<<(win : Widget)
Sourceapp
Sourceapp=(app : Application | Nil)
Sourcebind(mouse : MouseStatus, &block : Event::Mouse -> Bool) : self
Sourceborder
Sourceborder=(border : Border | Nil)
Sourcedirty
Sourcedirty=(v : Bool)
Sourcedirty?
Sourcedump_tree_rect(io : IO, e : Event::Mouse, far = 0)
Sourcefocused
Sourcefocused=(focused : Bool)
Sourceh(*args, **options)
Sourceh(*args, **options, &)
Sourcehandle(event : Event::Resize) : Bool
Sourcehandle(event : Event::Draw) : Bool
Sourcehandle(event : Event::Key) : Bool
Handle an event:
- Firstly see if it has been bound
- Secondly pass to the overwritable key method
- Then pass to the parent recursively
When there are no parent, false is returned and the event is left unhandled
height(w : Int32) : Int32 | Nil
Sourceheight
Sourcehover
Sourcehover=(hover : Tuple(Int32, Int32) | Nil)
Sourcelayout
Sourcelayout=(layout : Layout | Nil)
Sourceparent
Sourceparent!
Sourcerect
Sourcerect=(rect : Rect)
Sourcerect?
Sourceset_focused(val : Bool)
Sourceset_hover(e : Event::Mouse)
Sourceset_hover(xy : Tuple(Int32, Int32) | Nil)
Sourcetree_focused?
Sourceunbind(mouse : MouseStatus) : self
Sourceunbind_all
Sourceunbind_keys
Sourceunbind_mouse
Sourcew(*args, **options)
Sourcew(*args, **options, &)
Sourcewidth(h : Int32) : Int32 | Nil
Sourcewidth
Sourcex(*args, **options)
Sourcex(*args, **options, &)
Sourcey(*args, **options)
Sourcey(*args, **options, &)
Source