Separator class
#include <Jazz2/UI/Windows/Widgets.h>
Line between parts of a panel.
Base classes
- class Element
- Element of the interface.
Constructors, destructors, conversion operators
-
Separator(Windows::
Orientation orientation = Windows::Orientation::Horizontal) explicit - Creates a new instance, a vertical separator divides a row.
Public functions
- auto Measure(const Context& context, Vector2f available) -> Vector2f override
- Returns the size the element wants, in pixels.
- auto MeasureDependsOnAvailable() const -> bool override
- Returns
falseif what Measure() returns doesn't depend on the available size, it's measured once a frame then. - void Draw(Painter& painter) override
- Draws the element and its children.
Public variables
-
Windows::
Orientation Orientation - Direction of the line.