From 504656e9484752c9c0596f153f27089c1961f501 Mon Sep 17 00:00:00 2001 From: reinelt Date: Wed, 14 Jan 2004 11:33:00 +0000 Subject: [lcd4linux @ 2004-01-14 11:33:00 by reinelt] new plugin 'uname' which does what it's called text widget nearly finished first results displayed on MatrixOrbital git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@310 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- widget.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'widget.h') diff --git a/widget.h b/widget.h index 95a8586..c1b2785 100644 --- a/widget.h +++ b/widget.h @@ -1,4 +1,4 @@ -/* $Id: widget.h,v 1.6 2004/01/13 08:18:20 reinelt Exp $ +/* $Id: widget.h,v 1.7 2004/01/14 11:33:00 reinelt Exp $ * * generic widget handling * @@ -23,6 +23,11 @@ * * * $Log: widget.h,v $ + * Revision 1.7 2004/01/14 11:33:00 reinelt + * new plugin 'uname' which does what it's called + * text widget nearly finished + * first results displayed on MatrixOrbital + * * Revision 1.6 2004/01/13 08:18:20 reinelt * timer queues added * liblcd4linux deactivated turing transformation to new layout @@ -59,7 +64,6 @@ struct WIDGET; // forward declaration typedef struct WIDGET_CLASS { char *name; int (*init) (struct WIDGET *Self); - int (*update) (struct WIDGET *Self); // Fixme: do we really need this? int (*draw) (struct WIDGET *Self); int (*quit) (struct WIDGET *Self); } WIDGET_CLASS; @@ -68,16 +72,14 @@ typedef struct WIDGET_CLASS { typedef struct WIDGET{ char *name; WIDGET_CLASS *class; + int row; + int col; void *data; } WIDGET; int widget_register (WIDGET_CLASS *widget); -int widget_add (char *name); - - -// some basic widgets -WIDGET_CLASS Widget_Text; +int widget_add (char *name, int row, int col); #endif -- cgit v1.2.3