33 class Popup :
public TLayout<Popup, Panel>
56 bool isOpen()
const {
return isOpen_; }
69 void onUpdate(
float dt)
override;
72 std::shared_ptr<Layout> content_;
73 std::weak_ptr<Layout> anchor_;
74 std::weak_ptr<Layout> prevFocus_;
75 Vec2 pos_{0.0f, 0.0f};
80 void closeInternal(
bool restoreFocus);
81 Vec2 computePopupSize();
93 std::vector<std::pair<std::string, std::function<
void()>>> items);
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
Axis-aligned rectangle in screen coordinates.
Definition CoreTypes.hpp:46
2D vector with component-wise arithmetic.
Definition CoreTypes.hpp:25