application/main.c

branch
newapi
changeset 409
86fbc80f0be7
parent 408
b06e43f1edd4
child 411
3e91b7aff6a1
--- a/application/main.c	Thu Dec 05 08:40:37 2024 +0100
+++ b/application/main.c	Thu Dec 05 16:44:05 2024 +0100
@@ -268,7 +268,15 @@
     
     
     
-    UiObject *obj = ui_window("Test", NULL);
+    UiObject *obj = ui_sidebar_window("Test", NULL);
+    
+    ui_sidebar(obj, .margin = 8, .spacing = 8) {
+        ui_button(obj, .label = "Button 1", .style_class = "flat");
+        ui_button(obj, .label = "Button 2", .style_class = "flat");
+        ui_button(obj, .label = "Button 3", .style_class = "flat");
+        ui_button(obj, .label = "Button 4", .style_class = "flat");
+        ui_button(obj, .label = "Button 5", .style_class = "flat");
+    }
     
     MyDocument *doc = create_doc();
     ui_attach_document(obj->ctx, doc);

mercurial