ui/ui/toolkit.h

changeset 5
19d37cb9c96c
parent 4
39b9b86ec452
child 6
05a18c56d9ca
--- a/ui/ui/toolkit.h	Sat Mar 22 15:34:20 2014 +0100
+++ b/ui/ui/toolkit.h	Sat Mar 22 19:45:44 2014 +0100
@@ -60,6 +60,7 @@
 
 typedef struct UiInteger UiInteger;
 typedef struct UiString  UiString;
+typedef struct UiText    UiText;
 
 /* private types */
 typedef struct UiContext   UiContext;
@@ -118,6 +119,14 @@
     void  *obj;
 };
 
+struct UiText {
+    char* (*get)(UiText*);
+    void  (*set)(UiText*, char*);
+    char* value;
+    void  *obj;
+    // TODO: selection, undo, replace, ...
+};
+
 void ui_init(char *appname, int argc, char **argv);
 void ui_exitfunc(ui_callback f, void *udata);
 

mercurial