91 |
91 |
92 typedef struct UiInteger UiInteger; |
92 typedef struct UiInteger UiInteger; |
93 typedef struct UiString UiString; |
93 typedef struct UiString UiString; |
94 typedef struct UiText UiText; |
94 typedef struct UiText UiText; |
95 typedef struct UiList UiList; |
95 typedef struct UiList UiList; |
|
96 typedef struct UiRange UiRange; |
96 |
97 |
97 /* private types */ |
98 /* private types */ |
98 typedef struct UiContext UiContext; |
99 typedef struct UiContext UiContext; |
99 typedef struct UiContainer UiContainer; |
100 typedef struct UiContainer UiContainer; |
100 |
101 |
233 /* private - implementation dependent */ |
234 /* private - implementation dependent */ |
234 void *data; |
235 void *data; |
235 |
236 |
236 }; |
237 }; |
237 |
238 |
|
239 struct UiRange { |
|
240 double (*get)(UiRange *range); |
|
241 void (*set)(UiRange *range, double value); |
|
242 void (*setrange)(UiRange *range, double min, double max); |
|
243 void (*setextent)(UiRange *range, double extent); |
|
244 double value; |
|
245 double min; |
|
246 double max; |
|
247 double extent; |
|
248 void *obj; |
|
249 }; |
|
250 |
238 |
251 |
239 void ui_init(char *appname, int argc, char **argv); |
252 void ui_init(char *appname, int argc, char **argv); |
240 char* ui_appname(); |
253 char* ui_appname(); |
241 |
254 |
242 void ui_exitfunc(ui_callback f, void *userdata); |
255 void ui_exitfunc(ui_callback f, void *userdata); |