73 double max; |
73 double max; |
74 UiDouble* value; |
74 UiDouble* value; |
75 const char* varname; |
75 const char* varname; |
76 } UiProgressbarArgs; |
76 } UiProgressbarArgs; |
77 |
77 |
|
78 typedef struct UiProgressbarSpinnerArgs { |
|
79 UiTri fill; |
|
80 UiBool hexpand; |
|
81 UiBool vexpand; |
|
82 int colspan; |
|
83 int rowspan; |
|
84 |
|
85 UiInteger* value; |
|
86 const char* varname; |
|
87 } UiProgressbarSpinnerArgs; |
|
88 |
78 /* label widgets */ |
89 /* label widgets */ |
79 |
90 |
80 #define ui_label(obj, ...) ui_label_create(obj, (UiLabelArgs) { __VA_ARGS__ }) |
91 #define ui_label(obj, ...) ui_label_create(obj, (UiLabelArgs) { __VA_ARGS__ }) |
81 #define ui_llabel(obj, ...) ui_llabel_create(obj, (UiLabelArgs) { __VA_ARGS__ }) |
92 #define ui_llabel(obj, ...) ui_llabel_create(obj, (UiLabelArgs) { __VA_ARGS__ }) |
82 #define ui_rlabel(obj, ...) ui_rlabel_create(obj, (UiLabelArgs) { __VA_ARGS__ }) |
93 #define ui_rlabel(obj, ...) ui_rlabel_create(obj, (UiLabelArgs) { __VA_ARGS__ }) |
87 UIEXPORT UIWIDGET ui_rlabel_create(UiObject* obj, UiLabelArgs args); |
98 UIEXPORT UIWIDGET ui_rlabel_create(UiObject* obj, UiLabelArgs args); |
88 |
99 |
89 UIWIDGET ui_space(UiObject *obj); |
100 UIWIDGET ui_space(UiObject *obj); |
90 UIWIDGET ui_separator(UiObject *obj); |
101 UIWIDGET ui_separator(UiObject *obj); |
91 |
102 |
92 /* progress bar */ |
103 /* progress bar/spinner */ |
93 |
104 |
94 #define ui_progressbar(obj, ...) ui_progressbar_create(obj, (UiProgressbarArgs) { __VA_ARGS__ } ) |
105 #define ui_progressbar(obj, ...) ui_progressbar_create(obj, (UiProgressbarArgs) { __VA_ARGS__ } ) |
|
106 #define ui_progressspinner(obj, ...) ui_progressspinner_create(obj, (UiProgressbarSpinnerArgs) { __VA_ARGS__ } ) |
95 |
107 |
96 UIEXPORT UIWIDGET ui_progressbar_create(UiObject *obj, UiProgressbarArgs args); |
108 UIEXPORT UIWIDGET ui_progressbar_create(UiObject *obj, UiProgressbarArgs args); |
|
109 UIEXPORT UIWIDGET ui_progressspinner_create(UiObject* obj, UiProgressbarSpinnerArgs args); |
97 |
110 |
98 |
111 |
99 #ifdef __cplusplus |
112 #ifdef __cplusplus |
100 } |
113 } |
101 #endif |
114 #endif |