Skip to content
Snippets Groups Projects
Commit ff073966 authored by Odilitime's avatar Odilitime
Browse files

new layout data structure

parent db399e39
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,28 @@ struct UIlayout {
UImetric h = { false, 0 };
};
struct UImetricV2 {
bool requested; // initially set
double pct = 0; // percentage
int px = 0; // pixels
};
// defines an area that a component covers
struct UILayoutV2 {
// only height or 2 of these can be set
UImetricV2 top = { false, false, 0 };
UImetricV2 bottom = { false, false, 0 };
UImetricV2 height = { false, false, 0 };
// only width or 2 of these can be set
UImetricV2 left = { false, false, 0 };
UImetricV2 right = { false, false, 0 };
UImetricV2 width = { false, false, 0 };
};
// texturedComponent
// dual textComponent
// container component (drop down, drop text, list)
// should have 2 classes after this
// non-rendererable component (wtf are these?)
// and renderable component
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment