FormRow class
#include <Jazz2/UI/Windows/Widgets.h>
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.