class

Egui::Layout

Inherits Reference < Object

Constructors

left_to_right
Source
new(dir : Dir = :top_down)
Source
top_down
Source

Instance methods

advance(cursor : Pos2, size : Vec2, spacing : Vec2) : Pos2

Where the next widget starts after one of size was placed at cursor (egui Layout::advance_cursor minus the cross-axis parts — cross-axis centering for horizontal rows lives in Ui#allocate_space / Ui#@row_h).

Source
horizontal?
Source
vertical?
Source

Nested types