ui/ui/toolkit.h

changeset 146
dd0ae1c62a72
parent 145
853685152c1d
child 147
2e384acc89a6
--- a/ui/ui/toolkit.h	Sun Nov 12 12:03:50 2017 +0100
+++ b/ui/ui/toolkit.h	Thu Nov 16 12:04:10 2017 +0100
@@ -105,6 +105,9 @@
 /* begin opaque types */
 typedef struct UiContext    UiContext;
 typedef struct UiContainer  UiContainer;
+
+typedef struct UiIcon       UiIcon;
+typedef struct UiImage      UiImage;
 /* end opaque types */
 
 typedef struct UiTabbedPane UiTabbedPane;
@@ -331,7 +334,7 @@
 void ui_notify_evt(UiObserver *observer, UiEvent *event);
 
 
-UiList* ui_list_new(void);
+UiList* ui_list_new(UiContext *ctx, char *name);
 void* ui_list_first(UiList *list);
 void* ui_list_next(UiList *list);
 void* ui_list_get(UiList *list, int i);
@@ -344,7 +347,7 @@
 void ui_clipboard_set(char *str);
 char* ui_clipboard_get();
 
-void ui_add_image(char *imgname, char *filename);
+void ui_add_image(char *imgname, char *filename); // TODO: remove?
 
 // general widget functions
 void ui_set_enabled(UIWIDGET widget, int enabled);

mercurial