ui/motif/container.h

changeset 62
70d2aee84432
parent 61
7ee124a58fe3
child 64
6ef2c7f73a30
--- a/ui/motif/container.h	Thu Jan 01 17:22:55 2015 +0100
+++ b/ui/motif/container.h	Sun Jan 04 22:12:07 2015 +0100
@@ -42,6 +42,7 @@
 typedef struct MotifTabbedPane MotifTabbedPane;
 typedef struct UiTab           UiTab;
 typedef struct UiBoxContainer  UiBoxContainer;
+typedef struct UiGridContainer UiGridContainer;
 typedef struct UiLayout        UiLayout;
 
 typedef Widget (*ui_container_add_f)(UiContainer*, Arg*, int*, UiBool);
@@ -63,6 +64,7 @@
 
 struct UiLayout {
     UiLayoutBool fill;
+    UiBool newline;
 };
 
 struct UiContainer {
@@ -79,6 +81,12 @@
     UiBoxOrientation orientation;
 };
 
+struct UiGridContainer {
+    UiContainer container;
+    UcxList *lines;
+    UcxList *current;
+};
+
 struct MotifTabbedPane {
     UiTabbedPane view;
     Widget       tabbar;
@@ -101,6 +109,10 @@
 Widget ui_box_container_prepare(UiContainer *ct, Arg *args, int *n, UiBool fill);
 void ui_box_container_add(UiContainer *ct, Widget widget);
 
+UiContainer* ui_grid_container(UiObject *obj, Widget rowcolumn);
+Widget ui_grid_container_prepare(UiContainer *ct, Arg *args, int *n, UiBool fill);
+void ui_grid_container_add(UiContainer *ct, Widget widget);
+
 void ui_tab_button_callback(Widget widget, UiTab *tab, XtPointer d);
 void ui_change_tab(MotifTabbedPane *pane, UiTab *tab);
 

mercurial