class

Opal::UI::HStack

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Horizontal layout container placing children side-by-side from left to right.

Constructors

new(spacing : Int32 = 0)
Source
new(elements : Enumerable(Element), spacing : Int32 = 0)
Source
new(spacing : Int32 = 0, &)
Source

Instance methods

<<(element : Element) : self
Source
add(element : Element) : self
Source
children

Returns child elements for hierarchical tree traversal and DOM querying

Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
spacing
Source
spacing=(spacing : Int32)
Source