application/main.c

changeset 525
878df45e6441
parent 522
bb0d05f45046
child 526
f6a6b0b08641
--- a/application/main.c	Wed Mar 26 22:20:27 2025 +0100
+++ b/application/main.c	Thu Mar 27 21:28:04 2025 +0100
@@ -777,10 +777,14 @@
     UiObject *obj = ui_window("My Window", NULL);
     ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10) {
         ui_button(obj, .label = "Button 1");
-        ui_button(obj, .label = "Button 2");
+        ui_button(obj, .label = "Button 2", .hexpand = TRUE, .hfill = TRUE);
+        ui_button(obj, .label = "Button end");
         ui_newline(obj);
         
-        ui_button(obj, .label = "Button 3", .colspan = 2);
+        ui_button(obj, .label = "Button 3", .vexpand = TRUE, .vfill = TRUE);
+        ui_newline(obj);
+        
+        ui_button(obj, .label = "Button Y");
     }
     ui_show(obj);
 }

mercurial