class Opal::UI::VStack

Overview

Vertical layout container stacking children from top to bottom.

Defined in:

opal/ui/components/stack.cr

Constructors

Instance Method Summary

Instance methods inherited from class Opal::UI::Element

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

Constructor Detail

def self.new(spacing : Int32 = 0) #

[View source]

Instance Method Detail

def add(element : Element) : self #

[View source]
def children : Array(Element) #

[View source]
def preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32) #

[View source]
def render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil #

[View source]
def spacing : Int32 #

[View source]
def spacing=(spacing : Int32) #

[View source]