diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-04-23 19:17:56 +0200 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-04-23 19:22:10 +0200 |
| commit | 9866f48c8716996cd67ccb008471f73f8fc1baa6 (patch) | |
| tree | 5e4a11273ab1c82b06090d97c94a6a18e8fcfe3f /src/widget/widget_statusbar.h | |
| parent | 112e8071a8d96f9251ef265e31bd11a4662a893d (diff) | |
support statusbar (need write label)| fix kiks with keycontrol.conf| fix memory leak in font.c
Diffstat (limited to 'src/widget/widget_statusbar.h')
| -rw-r--r-- | src/widget/widget_statusbar.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/widget/widget_statusbar.h b/src/widget/widget_statusbar.h new file mode 100644 index 0000000..6b81cf3 --- /dev/null +++ b/src/widget/widget_statusbar.h @@ -0,0 +1,25 @@ + +#ifndef WIDGET_STATUSBAR_H + +# define WIDGET_STATUSBAR_H + +# include "main.h" +# include "widget.h" +# include "list.h" + +typedef struct widget_statusbar { + list_t *listElement; + int selectElement; +} widget_statusbar_t; + +# define WIDGET_STATUSBAR_NONE_SELECT_ELEMENT -1 +# define WIDGET_STATUSBAR_WIDTH 250 +# define WIDGET_STATUSBAR_HEIGHT 65 + +extern widget_t *statusbar_new(int x, int y); +extern void statusbar_add(widget_t *widget, widget_t * widget_catch, char *text); +extern void statusbar_draw(widget_t * widget); +extern void statusbar_event(widget_t * widget); +extern void statusbar_destroy(widget_t * widget); + +#endif |