ui/ui/toolkit.h

branch
newapi
changeset 186
5db4979bf482
parent 184
8c9b4b28aaa9
child 192
bcacd00ea955
equal deleted inserted replaced
185:4a8b1a748f09 186:5db4979bf482
161 typedef struct UiSelection UiSelection; 161 typedef struct UiSelection UiSelection;
162 /* end opaque types */ 162 /* end opaque types */
163 163
164 typedef struct UiTabbedPane UiTabbedPane; 164 typedef struct UiTabbedPane UiTabbedPane;
165 165
166 typedef enum UiTri UiTri;
167
166 enum UiMouseEventType { UI_PRESS = 0, UI_PRESS2 }; 168 enum UiMouseEventType { UI_PRESS = 0, UI_PRESS2 };
167 169
168 170
169 171
170 typedef void(*ui_callback)(UiEvent*, void*); /* event, user data */ 172 typedef void(*ui_callback)(UiEvent*, void*); /* event, user data */
337 void *obj; 339 void *obj;
338 /* list of observers */ 340 /* list of observers */
339 UiObserver *observers; 341 UiObserver *observers;
340 }; 342 };
341 343
344 enum UiTri {
345 UI_DEFAULT = 0,
346 UI_ON,
347 UI_OFF
348 };
349
342 350
343 void ui_init(const char *appname, int argc, char **argv); 351 void ui_init(const char *appname, int argc, char **argv);
344 const char* ui_appname(); 352 const char* ui_appname();
345 353
346 UiContext* ui_global_context(void); 354 UiContext* ui_global_context(void);

mercurial