class

Opal::UI::Group

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

Flexible container and grouping element supporting directional child layouts, background fills, borders, titles, and strict overflow clipping policies.

Constructors

new(title : String | Nil = nil, direction : LayoutDirection = LayoutDirection::Vertical, overflow : OverflowPolicy = OverflowPolicy::Hidden, border : Border = Border.none, padding : Int32 = 0)
Source

Instance methods

<<(el : Element) : self
Source
add(el : Element) : self
Source
background
Source
background=(background : Color)
Source
border
Source
border=(border : Border)
Source
border_color
Source
border_color=(border_color : Color)
Source
children

Returns child elements for hierarchical tree traversal and DOM querying

Source
direction
Source
direction=(direction : LayoutDirection)
Source
elements
Source
elements=(elements : Array(Element))
Source
overflow
Source
overflow=(overflow : OverflowPolicy)
Source
padding
Source
padding=(padding : Int32)
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
scroll_x
Source
scroll_x=(scroll_x : Int32)
Source
scroll_y
Source
scroll_y=(scroll_y : Int32)
Source
title
Source
title=(title : String | Nil)
Source
title_color
Source
title_color=(title_color : Color)
Source