ui/ui/toolkit.h

changeset 118
bb21210e9cac
parent 116
480354705c2f
child 120
49bc645df8b7
--- a/ui/ui/toolkit.h	Tue Jan 26 20:06:16 2016 +0100
+++ b/ui/ui/toolkit.h	Wed Jan 27 12:10:42 2016 +0100
@@ -93,6 +93,7 @@
 typedef struct UiString     UiString;
 typedef struct UiText       UiText;
 typedef struct UiList       UiList;
+typedef struct UiRange      UiRange;
 
 /* private types */
 typedef struct UiContext    UiContext;
@@ -235,6 +236,18 @@
     
 };
 
+struct UiRange {
+    double (*get)(UiRange *range);
+    void   (*set)(UiRange *range, double value);
+    void   (*setrange)(UiRange *range, double min, double max);
+    void   (*setextent)(UiRange *range, double extent);
+    double value;
+    double min;
+    double max;
+    double extent;
+    void   *obj;
+};
+
 
 void ui_init(char *appname, int argc, char **argv);
 char* ui_appname();

mercurial