Opal::UI::DockContainer
Inherits Opal::UI::Control < Opal::UI::InputHookable < Opal::UI::Element < Opal::UI::Themable < Reference < Object
Modern declarative Dock layout container inspired by Python Textual's Docking system. Arranges child elements docked to Top, Bottom, Left, Right, and Center, computing bounds and remaining canvas automatically.
Constructors
Instance methods
compute_layout(x : Int32, y : Int32, width : Int32, height : Int32) : Array(Tuple(DockItem, Int32, Int32, Int32, Int32))
Computes geometry rectangles for each child given total width and height
dock_center(element : Element) : self
SourceDefault key event handler. Override in subclasses if not using @default_input_proc.
Default mouse event handler. Override in subclasses if not using @default_input_proc.
items
Source