diff options
author | reinelt <> | 2004-01-14 11:33:00 +0000 |
---|---|---|
committer | reinelt <> | 2004-01-14 11:33:00 +0000 |
commit | b8448093e2f554744fa5911b2c96174b78f4ae0f (patch) | |
tree | 8322150effdcffca715e116498851a2bba00c953 /widget.h | |
parent | b626a0b1272e703d01a8001ddd7bab7b3cd5b6e3 (diff) | |
download | lcd4linux-b8448093e2f554744fa5911b2c96174b78f4ae0f.tar.gz |
[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
Diffstat (limited to 'widget.h')
-rw-r--r-- | widget.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 |