From 9866f48c8716996cd67ccb008471f73f8fc1baa6 Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Thu, 23 Apr 2009 19:17:56 +0200 Subject: support statusbar (need write label)| fix kiks with keycontrol.conf| fix memory leak in font.c --- src/widget/widget_statusbar.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/widget/widget_statusbar.h (limited to 'src/widget/widget_statusbar.h') 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 -- cgit v1.2.3