struct

Tryst::UI::GridAxisConfig

Inherits Struct < Value < Object

One column or row's grid columnconfigure/rowconfigure options - the leftover-space weight: (WidgetDSL#stretch's flat 1, or an explicit value from #column/#row) and the minimum pixel size: (-minsize). Both nilable: nil means "say nothing for this option", matching CellPosition's own convention - a column/row can get a weight with no min_size, a min_size with no weight, or (via #column/#row) both at once.

Constructors

new(weight : Int32 | Nil = nil, min_size : Int32 | Nil = nil)
Source

Instance methods

clone
Source
copy_with(weight _weight = @weight, min_size _min_size = @min_size)
Source
min_size
weight