5#include "flint/ui/ui-node.h"
6#include "flint/ui/ui-types.h"
34 [[nodiscard]]
const UIPadding &getPadding()
const {
41 [[nodiscard]]
float getGap()
const {
59 UILayoutDirection m_direction = UILayoutDirection::Vertical;
Dynamic 2D batching engine processing shape vector geometry and hardware-accelerated text strings....
Abstract base class for all UI widgets, managing hierarchy tracking, layout passes,...
UILayoutDirection getLayout() const
Gets the active layout axis stacking direction.
void measure(UIConstraints constraints) override
Accumulates the child node sizes along the layout axis, adding border paddings.
void render(UICanvas &canvas) const override
Pushes current styling rules and geometries straight down to the active pipeline vertex drawing queue...
void arrange(const Rect< float > &rect) override
Computes and maps specific layout regions for all children.
A container widget that arranges child nodes into sequential layout distributions.
void setLayout(UILayoutDirection direction)
Sets the layout axis direction along which children are sequentially stacked.
void setPadding(UIPadding padding)
Space added inside the panel border on all four sides.
void setGap(float gap)
Gap inserted between consecutive children (pixels). Default: 8.
Generic axis-aligned rectangle defined by a position and size.
Represents the boundary budget passed down the node tree during layout allocation.
Defines the internal spacing boundaries (in pixels) for UI layout containers.