From c374e8db5cd7580b00c3211e8f651a6db6d0c5d4 Mon Sep 17 00:00:00 2001 From: reinelt Date: Tue, 20 Jan 2004 04:51:39 +0000 Subject: [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 --- widget_bar.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'widget_bar.h') 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; -- cgit v1.2.3