A container widget that arranges child nodes into sequential layout distributions.
More...
|
|
FLINT_API void | setLayout (UILayoutDirection direction) |
| | Sets the layout axis direction along which children are sequentially stacked.
|
| |
| UILayoutDirection | getLayout () const |
| | Gets the active layout axis stacking direction.
|
| |
|
FLINT_API void | setPadding (UIPadding padding) |
| | Space added inside the panel border on all four sides.
|
| |
| const UIPadding & | getPadding () const |
| |
|
FLINT_API void | setGap (float gap) |
| | Gap inserted between consecutive children (pixels). Default: 8.
|
| |
| float | getGap () const |
| |
| 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 | render (UICanvas &canvas) const override |
| | Pushes current styling rules and geometries straight down to the active pipeline vertex drawing queue arrays.
|
| |
| FLINT_API void | setContext (UIContext *context) |
| | Recursively propagates a pointer back to the parent-managing workspace layer.
|
| |
| FLINT_API void | addChild (std::unique_ptr< UINode > child) |
| | Inserts a child widget to live inside this layout element container boundary.
|
| |
|
FLINT_API void | setPosition (Vec2f position) |
| | Updates the relative local rendering position coordinates of this element block.
|
| |
| Vec2f | getPosition () const |
| | Get the node's relative local position.
|
| |
|
FLINT_API void | setSize (Vec2f size) |
| | Assigns a manual static override layout budget footprint dimensions limit.
|
| |
| Vec2f | getSize () const |
| | Get the node's base size.
|
| |
| FLINT_API void | setVisible (bool visible) |
| | Sets widget visibility.
|
| |
| FLINT_API void | setEnabled (bool enabled) |
| | Enables or disables user interaction for this widget.
|
| |
| FLINT_API void | setID (std::string id) |
| | Sets a unique string identifier for this node.
|
| |
|
FLINT_API const std::string & | getId () const |
| | Gets the unique lookup ID string of this node.
|
| |
|
FLINT_API const Rect< float > & | getLayoutRect () const |
| | Gets the final screen-space bounding box calculated during the arrange pass.
|
| |
| bool | isVisible () const |
| |
| bool | isEnabled () const |
| |
| Vec2f | getDesiredSize () const |
| | Get the node's requested size from the measure pass.
|
| |
| const std::vector< std::unique_ptr< UINode > > & | getChildren () const |
| | Get the list of this node's child nodes.
|
| |
| virtual void | setFocused (bool focused) |
| | Sets whether this node is currently focused.
|
| |
|
FLINT_API void | setText (std::string text) |
| | Sets the text content for widgets that display text.
|
| |
|
FLINT_API const std::string & | getText () const |
| | Gets the current text content of the widget.
|
| |
|
FLINT_API void | setFontSize (uint16_t fontSize) |
| | Set the rendering font size in points.
|
| |
|
FLINT_API uint16_t | getFontSize () const |
| |
|
FLINT_API void | setColor (Color color) |
| | Sets the base color of the widget.
|
| |
|
FLINT_API Color | getColor () const |
| |
| virtual void | setNormalColor (Color color) |
| | Sets the base color of the widget.
|
| |
| virtual void | setActiveColor (Color color) |
| | Sets visual colors used when inputs hover across or lock selections on the widget container.
|
| |
| virtual FLINT_API void | handleEvent (const UIEvent &event) |
| | Traverses active child collections to pass translated physical hardware inputs down to focused widgets.
|
| |
| virtual bool | isFocusable () const |
| | Dictates if keyboard selection trackers or gamepad vectors can snap control focuses onto this item.
|
| |
| virtual FLINT_API bool | hitTest (Vec2f point) const |
| | Computes true if a vector coordinate sits inside the spatial arrangement bounding tracking layout box.
|
| |
| void | setFont (std::string name) |
| | Assigns a custom typography description token mapping back to cached font elements.
|
| |
| void | setFontWeight (uint16_t weight) |
| | Assigns thickness parameters across structural type vectors (e.g., 400 for regular, 700 for bold).
|
| |
| void | setTextOpticalBias (float bias) |
| |
| float | getTextOpticalBias () const |
| |
| virtual bool | consumesDirectionalInput () const |
| | Dictates whether this widget captures directional inputs instead of passing them to focus navigation.
|
| |
| bool | isFocused () const |
| |
|
FLINT_API void | setHorizontalAlign (UIAlign align) |
| |
|
FLINT_API void | setVerticalAlign (UIAlign align) |
| |
|
FLINT_API UIAlign | getHorizontalAlign () const |
| |
|
FLINT_API UIAlign | getVerticalAlign () const |
| |
|
FLINT_API void | setLayoutGrow (float grow) |
| | Assigns dynamic expansion multipliers used to balance alignment distributions inside sequential layout panels.
|
| |
|
FLINT_API float | getLayoutGrow () const |
| | Gets the dynamic expansion weight used inside stack layout grids.
|
| |
A container widget that arranges child nodes into sequential layout distributions.
- UIPanel supports Vertical, Horizontal, or absolute anchoring layouts. It evaluates internal boundaries using configurable padding metrics, spaces children with specific gaps, and dynamically divides empty space among flexible layout paths using child layoutGrow coefficients.
Definition at line 19 of file panel.h.