From a1a0dfa52a40cc99c48fb812fa1b3864c5f642b8 Mon Sep 17 00:00:00 2001 From: reinelt Date: Tue, 21 Feb 2006 05:50:34 +0000 Subject: [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 --- widget.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'widget.h') 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 -- cgit v1.2.3