added margin and padding support, some fixes: yoga needs many values to be initialized properly

This commit is contained in:
2017-01-23 22:13:36 +00:00
parent e556cf4c61
commit 5268f65777
5 changed files with 189 additions and 75 deletions

View File

@@ -16,7 +16,8 @@ class App
Rounded rounded;
Slice9 slice;
Texture2D tex;
YGNodeRef y_root;
YGNodeRef y_root { nullptr };
struct stat g_file_info { 0 };
public:
static App I;
float width;
@@ -26,4 +27,5 @@ public:
void update(float dt);
void resize(float w, float h);
void update_layout();
void load_layout();
};