aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.h
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-06 06:37:34 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-06 06:37:34 +0000
commit4042833f1f9cf91aa6b174daf6bde964df13f776 (patch)
tree331a5a1bee265684a959f460a1071897282e8ab4 /widget_bar.h
parent68f0bcc303b6ba1ac102ed24d589fe9d64a74f73 (diff)
downloadlcd4linux-4042833f1f9cf91aa6b174daf6bde964df13f776.tar.gz
[lcd4linux @ 2005-05-06 06:37:34 by reinelt]
hollow bar patch from geronet git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@545 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_bar.h')
-rw-r--r--widget_bar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/widget_bar.h b/widget_bar.h
index 804738e..6cb31c6 100644
--- a/widget_bar.h
+++ b/widget_bar.h
@@ -1,4 +1,4 @@
-/* $Id: widget_bar.h,v 1.6 2005/01/18 06:30:24 reinelt Exp $
+/* $Id: widget_bar.h,v 1.7 2005/05/06 06:37:34 reinelt Exp $
*
* bar widget handling
*
@@ -23,6 +23,9 @@
*
*
* $Log: widget_bar.h,v $
+ * Revision 1.7 2005/05/06 06:37:34 reinelt
+ * hollow bar patch from geronet
+ *
* Revision 1.6 2005/01/18 06:30:24 reinelt
* added (C) to all copyright statements
*
@@ -56,6 +59,7 @@
#define _WIDGET_BAR_H_
typedef enum { DIR_EAST=1, DIR_WEST=2, DIR_NORTH=4, DIR_SOUTH=8 } DIRECTION;
+typedef enum { STYLE_HOLLOW = 1, STYLE_FIRST = 2, STYLE_LAST = 4 } STYLE;
typedef struct WIDGET_BAR {
char *expression1; /* expression that delivers the value */
@@ -67,6 +71,7 @@ typedef struct WIDGET_BAR {
void *tree_min; /* pre-compiled expression that delivers the minimum value */
void *tree_max; /* pre-compiled expression that delivers the maximum value */
DIRECTION direction; /* bar direction */
+ STYLE style; /* bar style (hollow) */
int length; /* bar length */
int update; /* update interval (msec) */
double val1; /* bar value, 0.0 ... 1.0 */