diff -r 9a7e4a335b2b -r 2019fdbaadfd ui/ui/toolkit.h --- a/ui/ui/toolkit.h Sun Feb 15 15:44:24 2015 +0100 +++ b/ui/ui/toolkit.h Tue Feb 17 20:12:22 2015 +0100 @@ -73,23 +73,23 @@ extern "C" { #endif -#define UI_GROUP_SELECTION 20000 +#define UI_GROUP_SELECTION 20000 /* public types */ typedef int UiBool; -typedef struct UiObject UiObject; -typedef struct UiEvent UiEvent; -typedef struct UiObserver UiObserver; +typedef struct UiObject UiObject; +typedef struct UiEvent UiEvent; +typedef struct UiObserver UiObserver; -typedef struct UiInteger UiInteger; -typedef struct UiString UiString; -typedef struct UiText UiText; -typedef struct UiList UiList; +typedef struct UiInteger UiInteger; +typedef struct UiString UiString; +typedef struct UiText UiText; +typedef struct UiList UiList; /* private types */ -typedef struct UiContext UiContext; -typedef struct UiContainer UiContainer; +typedef struct UiContext UiContext; +typedef struct UiContainer UiContainer; typedef struct UiTabbedPane UiTabbedPane; @@ -186,11 +186,13 @@ char* (*get)(UiText*); char* (*getsubstr)(UiText*, int, int); // text, begin, end void (*insert)(UiText*, int, char*); + void (*setposition)(UiText*,int); int (*position)(UiText*); void (*selection)(UiText*, int*, int*); // text, begin, end int (*length)(UiText*); void (*remove)(UiText*, int, int); // text, begin, end char *value; + int pos; void *obj; void *undomgr; // TODO: replace, ...