diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-14 11:33:00 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-14 11:33:00 +0000 |
commit | 504656e9484752c9c0596f153f27089c1961f501 (patch) | |
tree | 8322150effdcffca715e116498851a2bba00c953 /widget.h | |
parent | 90a08f4f1082f25ab999d8a331dcbea512778a47 (diff) | |
download | lcd4linux-504656e9484752c9c0596f153f27089c1961f501.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
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@310 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
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 |