diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-11 18:26:02 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-11 18:26:02 +0000 |
commit | bbe7f194ee035c6cafdc5102092b7b422541aeab (patch) | |
tree | ae4d2f2e9b87822d41960e72b58d8c7de974d565 /widget.h | |
parent | e2854bdb20aa686e18df912e133b790ae39ad44d (diff) | |
download | lcd4linux-bbe7f194ee035c6cafdc5102092b7b422541aeab.tar.gz |
[lcd4linux @ 2004-01-11 18:26:02 by reinelt]
further widget and layout processing
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@306 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget.h')
-rw-r--r-- | widget.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: widget.h,v 1.4 2004/01/10 20:22:33 reinelt Exp $ +/* $Id: widget.h,v 1.5 2004/01/11 18:26:02 reinelt Exp $ * * generic widget handling * @@ -23,6 +23,9 @@ * * * $Log: widget.h,v $ + * Revision 1.5 2004/01/11 18:26:02 reinelt + * further widget and layout processing + * * Revision 1.4 2004/01/10 20:22:33 reinelt * added new function 'cfg_list()' (not finished yet) * added layout.c (will replace processor.c someday) @@ -48,20 +51,24 @@ struct WIDGET; // forward declaration + typedef struct WIDGET_CLASS { char *name; int (*init) (struct WIDGET *Self); - int (*update) (struct WIDGET *Self); - int (*render) (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; + typedef struct WIDGET{ - char *name; + char *name; WIDGET_CLASS *class; + void *data; } WIDGET; + int widget_register (WIDGET_CLASS *widget); |