ui/winui/container.cpp

changeset 75
73c8a3780c72
parent 0
2483f517c562
child 76
641dcc79e0ef
--- a/ui/winui/container.cpp	Tue Oct 29 20:30:00 2024 +0100
+++ b/ui/winui/container.cpp	Sun Nov 10 09:12:30 2024 +0100
@@ -678,6 +678,16 @@
 	ct->layout.vexpand = expand;
 }
 
+void ui_layout_hfill(UiObject *obj, UiBool fill) {
+    UiContainer *ct = uic_get_current_container(obj);
+    ct->layout.hfill = fill;
+}
+
+void ui_layout_vfill(UiObject *obj, UiBool fill) {
+    UiContainer *ct = uic_get_current_container(obj);
+    ct->layout.vfill = fill;
+}
+
 void ui_layout_width(UiObject* obj, int width) {
 	UiContainer* ct = uic_get_current_container(obj);
 	ct->layout.width = width;

mercurial