diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:00:29 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:00:29 +0000 |
| commit | c68df329f2483d8fc9b75488c695787cd18c20a4 (patch) | |
| tree | 18e11cd70360c77606ecdeafe5dbd8f9ff0c12d7 /src/widget/widget.h | |
| parent | 753fde16397b5943091aa1e9112cea1e5ded0ca5 (diff) | |
- vsetky widegety pouzivaju widget_t
( priparava na kontajner s widgetmi )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@201 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/widget/widget.h')
| -rw-r--r-- | src/widget/widget.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/widget/widget.h b/src/widget/widget.h new file mode 100644 index 0000000..0fcb86c --- /dev/null +++ b/src/widget/widget.h @@ -0,0 +1,33 @@ + +#ifndef WIDGET_H + +#define WIDGET_H + +#include "main.h" + +#define WIDGET_TYPE_LABEL 1 +#define WIDGET_TYPE_BUTTON 2 +#define WIDGET_TYPE_BUTTONIMAGE 3 +#define WIDGET_TYPE_TEXTFILED 4 +#define WIDGET_TYPE_CATCHKEY 4 +#define WIDGET_TYPE_CHECK 5 +#define WIDGET_TYPE_CHOICE 6 +#define WIDGET_TYPE_IMAGE 7 +#define WIDGET_TYPE_SELECT 8 + +typedef struct widget_struct +{ + int type; + int x, y; + int w, h; + void *private_data; +} widget_t; + +extern widget_t* newWidget(int type, int x, int y, int w, int h, void *private_data); +extern void widgetSetLocation(widget_t *p, int x, int y); +extern void widgetGetLocation(widget_t *p, int *x, int *y); +extern void widgetSetSize(widget_t *p, int w, int h); +extern void widgetGetSize(widget_t *p, int *w, int *h); +extern void destroyWidget(widget_t *p); + +#endif |