5#include "flint/ui/ui-node.h"
6#include "flint/ui/widgets/sprite.h"
16 enum class IconPlacement {
55 void setIcon(std::unique_ptr<UISprite> icon, IconPlacement placement = IconPlacement::Left) {
56 m_icon = std::move(icon);
58 m_iconPlacement = placement;
68 std::function<void()> m_onClick;
72 void activate()
const;
74 std::unique_ptr<UISprite> m_icon;
75 IconPlacement m_iconPlacement = IconPlacement::Left;
76 float m_iconGap = 4.f;
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,...
Generic axis-aligned rectangle defined by a position and size.
Represents the boundary budget passed down the node tree during layout allocation.
A normalized data packet containing translated input data routed down the UI node tree.