completing refactoring, something does not work on resize

This commit is contained in:
2017-02-02 00:43:23 +00:00
parent 70792669e7
commit bcf95d5432
4 changed files with 42 additions and 32 deletions

View File

@@ -182,6 +182,8 @@ public:
class Node
{
friend class LayoutManager;
const Node* parent{ nullptr };
YGNodeRef y_node{ nullptr };
@@ -293,5 +295,7 @@ class LayoutManager
struct stat m_file_info { 0 };
public:
bool load(const char* path);
void reload();
bool reload();
Node& operator[](uint16_t id) { return m_layouts[id]; }
Node& operator[](const char* ids) { return m_layouts[const_hash(ids)]; }
};