added margin and padding support, some fixes: yoga needs many values to be initialized properly
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user