separate functions

for updating dimension, handling input and pushing commands
This commit is contained in:
Alessandro Mauri 2022-12-08 18:50:30 +01:00
parent 46e6e378d0
commit c930520cbd
2 changed files with 43 additions and 13 deletions

View file

@ -178,9 +178,8 @@ int main(void)
ug_ctx_set_unit(ctx, UG_UNIT_MM);
ug_container_floating(ctx, "stupid name",
(ug_div_t){.x=SIZE_PX(0), .y=SIZE_PX(0), .w=SIZE_PX(100), .h=SIZE_MM(75.0)});
ug_container_floating(ctx, "better name",
(ug_div_t){.x=SIZE_PX(-10), .y=SIZE_PT(-16), .w=SIZE_MM(100), .h=SIZE_PX(15)});
ug_container_sidebar(ctx, "Sidebar", (ug_size_t)SIZE_PX(300), UG_SIDE_BOTTOM);
ug_container_sidebar(ctx, "Sidebar", (ug_size_t)SIZE_PX(300), UG_SIDE_RIGHT);
ug_frame_end(ctx);
// fill background