add on_destroy layout event

This commit is contained in:
MihailRis 2026-06-02 23:57:22 +03:00
parent 5930ef8285
commit bb135d33b5
4 changed files with 42 additions and 2 deletions

View file

@ -17,6 +17,7 @@ struct UiDocScript {
bool onopen : 1;
bool onprogress : 1;
bool onclose : 1;
bool ondestroy : 1;
};
using UINodesMap = std::unordered_map<std::string, std::weak_ptr<gui::UINode>>;
@ -35,6 +36,8 @@ public:
scriptenv env
);
~UiDocument();
void rebuildIndices();
void pushIndices(const std::shared_ptr<gui::UINode>& node);