aboutsummaryrefslogtreecommitdiffstats
path: root/widget.h
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-21 05:50:34 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-21 05:50:34 +0000
commita1a0dfa52a40cc99c48fb812fa1b3864c5f642b8 (patch)
tree178703096587ebc29a29963236b5e2d345506f35 /widget.h
parentf2b964cb65e88fb238df3b562e8edfb0b9243489 (diff)
downloadlcd4linux-a1a0dfa52a40cc99c48fb812fa1b3864c5f642b8.tar.gz
[lcd4linux @ 2006-02-21 05:50:34 by reinelt]
keypad support from Cris Maj git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@641 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget.h')
-rw-r--r--widget.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/widget.h b/widget.h
index 4300164..d5f7abd 100644
--- a/widget.h
+++ b/widget.h
@@ -1,4 +1,4 @@
-/* $Id: widget.h,v 1.17 2006/01/30 05:47:38 reinelt Exp $
+/* $Id: widget.h,v 1.18 2006/02/21 05:50:34 reinelt Exp $
*
* generic widget handling
*
@@ -23,6 +23,9 @@
*
*
* $Log: widget.h,v $
+ * Revision 1.18 2006/02/21 05:50:34 reinelt
+ * keypad support from Cris Maj
+ *
* Revision 1.17 2006/01/30 05:47:38 reinelt
* graphic subsystem changed to full-color RGBA
*
@@ -107,6 +110,8 @@ typedef struct WIDGET_CLASS {
int type;
int (*init) (struct WIDGET * Self);
int (*draw) (struct WIDGET * Self);
+ int (*find) (struct WIDGET * Self, void *needle);
+ void (*update) (void *Self);
int (*quit) (struct WIDGET * Self);
} WIDGET_CLASS;
@@ -130,10 +135,12 @@ typedef struct WIDGET {
#define WIDGET_TYPE_XY 2
#define WIDGET_TYPE_GPO 3
#define WIDGET_TYPE_TIMER 4
+#define WIDGET_TYPE_KEYPAD 5
int widget_register(WIDGET_CLASS * widget);
void widget_unregister(void);
int widget_add(const char *name, const int type, const int layer, const int row, const int col);
+WIDGET *widget_find(int type, void *needle);
#endif