aboutsummaryrefslogtreecommitdiffstats
path: root/widget.h
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-12-18 16:18:36 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-12-18 16:18:36 +0000
commit0a40256cd918d386d0a7b9955322cf9aa0f9da8b (patch)
tree819babba1e548bbcd9fffef6875593e7ade8b57b /widget.h
parent59524120cfc433dbf1095cf095d8035d21e69784 (diff)
downloadlcd4linux-0a40256cd918d386d0a7b9955322cf9aa0f9da8b.tar.gz
[lcd4linux @ 2005-12-18 16:18:34 by reinelt]
GPO's added again git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@602 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget.h')
-rw-r--r--widget.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/widget.h b/widget.h
index 5805041..04de327 100644
--- a/widget.h
+++ b/widget.h
@@ -1,4 +1,4 @@
-/* $Id: widget.h,v 1.14 2005/11/06 09:17:20 reinelt Exp $
+/* $Id: widget.h,v 1.15 2005/12/18 16:18:36 reinelt Exp $
*
* generic widget handling
*
@@ -23,6 +23,9 @@
*
*
* $Log: widget.h,v $
+ * Revision 1.15 2005/12/18 16:18:36 reinelt
+ * GPO's added again
+ *
* Revision 1.14 2005/11/06 09:17:20 reinelt
* re-use icons (thanks to Jesus de Santos Garcia)
*
@@ -93,6 +96,7 @@ struct WIDGET; /* forward declaration */
typedef struct WIDGET_CLASS {
char *name;
+ int type;
int (*init) (struct WIDGET * Self);
int (*draw) (struct WIDGET * Self);
int (*quit) (struct WIDGET * Self);
@@ -109,9 +113,12 @@ typedef struct WIDGET {
} WIDGET;
+#define WIDGET_TYPE_VIS 1
+#define WIDGET_TYPE_GPO 2
+
int widget_register(WIDGET_CLASS * widget);
void widget_unregister(void);
-int widget_add(const char *name, const int row, const int col);
+int widget_add(const char *name, const int type, const int row, const int col);
#endif