Jazz2::UI::Windows::FormRow class

Row of a Form.

Base classes

class Element
Element of the interface.

Constructors, destructors, conversion operators

FormRow(Form& form, StringView label, StringView tooltip)
Creates a new instance.

Public functions

auto GetLabel() const -> Label*
Returns the label.
auto GetContent() const -> Stack*
Returns the stack of what the row is about.
auto GetLabelWidth(const Context& context) const -> float
Returns the width of the label in whole pixels.
auto Measure(const Context& context, Vector2f available) -> Vector2f override
Returns the size the element wants, in pixels.
void Arrange(const Context& context, const Rectf& bounds) override
Places the element and its children.

Function documentation

Vector2f Jazz2::UI::Windows::FormRow::Measure(const Context& context, Vector2f available) override

Returns the size the element wants, in pixels.

The available size is what the parent can give, a size without limit is a very large number.