mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
generated ui nodes indexing
This commit is contained in:
parent
e57b0eca15
commit
1a4c70d21a
6 changed files with 50 additions and 58 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <unordered_map>
|
||||
#include "../../../delegates.h"
|
||||
#include "../../../window/input.h"
|
||||
|
||||
|
|
@ -193,6 +194,12 @@ namespace gui {
|
|||
void reposition();
|
||||
|
||||
virtual void setGravity(Gravity gravity);
|
||||
|
||||
// @brief collect all nodes having id
|
||||
static void getIndices(
|
||||
std::shared_ptr<UINode> node,
|
||||
std::unordered_map<std::string, std::shared_ptr<UINode>>& map
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue