diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-20 04:51:39 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-20 04:51:39 +0000 |
commit | c374e8db5cd7580b00c3211e8f651a6db6d0c5d4 (patch) | |
tree | c69d9d3e57c90cb364d3f051813619db38e46e18 /widget_bar.h | |
parent | 43b7c5545ed0f017f5d752bafc4c76dde7d2e6d3 (diff) | |
download | lcd4linux-c374e8db5cd7580b00c3211e8f651a6db6d0c5d4.tar.gz |
[lcd4linux @ 2004-01-20 04:51:39 by reinelt]
moved generic stuff from drv_MatrixOrbital to drv_generic
implemented new-stylish bars which are nearly finished
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@321 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_bar.h')
-rw-r--r-- | widget_bar.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/widget_bar.h b/widget_bar.h index 3c725cc..977df98 100644 --- a/widget_bar.h +++ b/widget_bar.h @@ -1,4 +1,4 @@ -/* $Id: widget_bar.h,v 1.1 2004/01/18 21:25:16 reinelt Exp $ +/* $Id: widget_bar.h,v 1.2 2004/01/20 04:51:39 reinelt Exp $ * * bar widget handling * @@ -23,6 +23,10 @@ * * * $Log: widget_bar.h,v $ + * Revision 1.2 2004/01/20 04:51:39 reinelt + * moved generic stuff from drv_MatrixOrbital to drv_generic + * implemented new-stylish bars which are nearly finished + * * Revision 1.1 2004/01/18 21:25:16 reinelt * Framework for bar widget opened * @@ -32,15 +36,20 @@ #ifndef _WIDGET_BAR_H_ #define _WIDGET_BAR_H_ -typedef enum { DIR_EAST, DIR_WEST, DIR_NORTH, DIR_SOUTH } DIRECTION; +typedef enum { DIR_EAST=1, DIR_WEST=2, DIR_NORTH=4, DIR_SOUTH=8 } DIRECTION; typedef struct WIDGET_BAR { char *expression1; // expression that delivers the value char *expression2; // expression that delivers the value + char *expr_min; // expression that delivers the minimum value + char *expr_max; // expression that delivers the maximum value DIRECTION direction; // bar direction int length; // bar length int update; // update interval (msec) - + double val1; // bar value, 0.0 ... 1.0 + double val2; // bar value, 0.0 ... 1.0 + double min; // minimum value + double max; // maximum value } WIDGET_BAR; |