reduce extra includes

This commit is contained in:
MihailRis
2025-04-02 14:55:53 +03:00
parent dbe9ca5efe
commit b3feb5945b
25 changed files with 71 additions and 46 deletions
+4 -4
View File
@@ -19,12 +19,12 @@ struct uidocscript {
bool onclose : 1;
};
using uinodes_map = std::unordered_map<std::string, std::shared_ptr<gui::UINode>>;
using UINodesMap = std::unordered_map<std::string, std::shared_ptr<gui::UINode>>;
class UiDocument {
std::string id;
uidocscript script;
uinodes_map map;
UINodesMap map;
std::shared_ptr<gui::UINode> root;
scriptenv env;
public:
@@ -38,8 +38,8 @@ public:
void rebuildIndices();
const std::string& getId() const;
const uinodes_map& getMap() const;
uinodes_map& getMapWriteable();
const UINodesMap& getMap() const;
UINodesMap& getMapWriteable();
std::shared_ptr<gui::UINode> getRoot() const;
std::shared_ptr<gui::UINode> get(const std::string& id) const;
const uidocscript& getScript() const;