mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
UiDocument
This commit is contained in:
parent
c902ed506b
commit
1dd0e9f939
17 changed files with 257 additions and 42 deletions
|
|
@ -7,6 +7,10 @@
|
|||
#include "GUI.h"
|
||||
#include "../../coders/xml.h"
|
||||
|
||||
namespace scripting {
|
||||
class Environment;
|
||||
}
|
||||
|
||||
namespace gui {
|
||||
class UiXmlReader;
|
||||
|
||||
|
|
@ -15,8 +19,9 @@ namespace gui {
|
|||
class UiXmlReader {
|
||||
std::unordered_map<std::string, uinode_reader> readers;
|
||||
std::string filename;
|
||||
const scripting::Environment& env;
|
||||
public:
|
||||
UiXmlReader();
|
||||
UiXmlReader(const scripting::Environment& env);
|
||||
|
||||
void add(const std::string& tag, uinode_reader reader);
|
||||
|
||||
|
|
@ -44,6 +49,7 @@ namespace gui {
|
|||
xml::xmlelement root
|
||||
);
|
||||
|
||||
const scripting::Environment& getEnvironment() const;
|
||||
const std::string& getFilename() const;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue