53 bool isOpen()
const {
return isOpen_; }
71 std::shared_ptr<Layout> content;
75 std::weak_ptr<Layout> prevFocus_;
Centralized standard library includes used throughout ZenitUI.
The node class: tree structure, layout pass, style resolution, input dispatch, render orchestration,...
Layout(LayoutType type=LayoutType::Stack)
Construct a node with the given layout strategy.
Definition Layout.hpp:163
TLayout(Args &&...args)
Definition Layout.hpp:1401
void hide()
Hide the modal: fade out, play the intro animation in reverse.
std::function< void()> onShow
Fired after show().
Definition Modal.hpp:63
bool isOpen() const
true while the modal is open.
Definition Modal.hpp:53
bool closeOnEscape
Close when Escape is pressed while open.
Definition Modal.hpp:60
void show()
Show the modal: enable, fade in, play the intro animation.
void onBuild() override
Hook: called once after create() finishes constructing the object.
void onUpdate(float dt) override
Called every frame from update, after input dispatch.
Layout * contentTarget() override
Return the internal content panel (VStack with class "modal-content").
std::function< void()> onHide
Fired after hide().
Definition Modal.hpp:65