54 static std::shared_ptr<Tooltip>
attach(std::shared_ptr<Layout> owner,
56 float showDelay = 0.4f);
58 void setText(std::string text);
59 const std::string &getText()
const {
return text_; }
62 void setAnchor(std::weak_ptr<Layout> a) { anchor_ = std::move(a); }
76 void onUpdate(
float dt)
override;
80 std::weak_ptr<Text> label_;
81 std::weak_ptr<Layout> anchor_;
82 float showDelay_{0.4f};
84 bool hovering_{
false};
87 void setTargetOpacity(
float op);
Centralized standard library includes used throughout ZenitUI.
The node class: tree structure, layout pass, style resolution, input dispatch, render orchestration,...
Basic layout containers: VStack, HStack, Panel.
TLayout(Args &&...args)
Definition Layout.hpp:1401
A read-only text node.
Definition Text.hpp:32
Axis-aligned rectangle in screen coordinates.
Definition CoreTypes.hpp:46