separate functions
for updating dimension, handling input and pushing commands
This commit is contained in:
parent
46e6e378d0
commit
c930520cbd
2 changed files with 43 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue