aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--widget_bar.h15
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;