5#include "flint/core/api.h"
6#include "flint/ui/ui-node.h"
7#include "flint/ui/ui-types.h"
25 FLINT_API
void setLayout(UILayoutDirection direction);
35 [[nodiscard]]
const UIPadding &getPadding()
const {
42 [[nodiscard]]
float getGap()
const {
60 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,...
A container widget that arranges child nodes into sequential layout distributions.
UILayoutDirection getLayout() const
Gets the active layout axis stacking direction.
FLINT_API void setGap(float gap)
Gap inserted between consecutive children (pixels). Default: 8.
FLINT_API void render(UICanvas &canvas) const override
Pushes current styling rules and geometries straight down to the active pipeline vertex drawing queue...
FLINT_API void measure(UIConstraints constraints) override
Accumulates the child node sizes along the layout axis, adding border paddings.
FLINT_API void arrange(const Rect< float > &rect) override
Computes and maps specific layout regions for all children.
FLINT_API void setPadding(UIPadding padding)
Space added inside the panel border on all four sides.
FLINT_API void setLayout(UILayoutDirection direction)
Sets the layout axis direction along which children are sequentially stacked.
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.