aboutsummaryrefslogtreecommitdiffstats
path: root/widget_text.h
diff options
context:
space:
mode:
authorreinelt <>2006-08-13 09:53:10 +0000
committerreinelt <>2006-08-13 09:53:10 +0000
commit218552b9a4c9e453c09ff31134ea9b909371b3f4 (patch)
tree6490997635549846cf304b2cfc4fc256f55d6ca7 /widget_text.h
parentd3e904dd6fcaf98d8163c3584eba575e179d3ac4 (diff)
downloadlcd4linux-218552b9a4c9e453c09ff31134ea9b909371b3f4.tar.gz
[lcd4linux @ 2006-08-13 09:53:10 by reinelt]
dynamic properties added (used by 'style' of text widget)
Diffstat (limited to 'widget_text.h')
-rw-r--r--widget_text.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/widget_text.h b/widget_text.h
index 5708693..f864410 100644
--- a/widget_text.h
+++ b/widget_text.h
@@ -1,4 +1,4 @@
-/* $Id: widget_text.h,v 1.7 2005/05/08 04:32:45 reinelt Exp $
+/* $Id: widget_text.h,v 1.8 2006/08/13 09:53:10 reinelt Exp $
*
* simple text widget handling
*
@@ -23,6 +23,9 @@
*
*
* $Log: widget_text.h,v $
+ * Revision 1.8 2006/08/13 09:53:10 reinelt
+ * dynamic properties added (used by 'style' of text widget)
+ *
* Revision 1.7 2005/05/08 04:32:45 reinelt
* CodingStyle added and applied
*
@@ -62,7 +65,11 @@
#ifndef _WIDGET_TEXT_H_
#define _WIDGET_TEXT_H_
-typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE } ALIGN;
+
+#include "property.h"
+
+
+typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE } TEXT_ALIGN;
typedef struct WIDGET_TEXT {
char *prefix; /* expression for label on the left side */
@@ -77,7 +84,8 @@ typedef struct WIDGET_TEXT {
char *buffer; /* string with 'width+1' bytes allocated */
int width; /* field width */
int precision; /* number of digits after the decimal point */
- ALIGN align; /* alignment: L, C, R, M(arquee) */
+ TEXT_ALIGN align; /* alignment: L(eft), C(enter), R(ight), M(arquee) */
+ PROPERTY style; /* text style (plain/bold/slant) */
int update; /* update interval */
int scroll; /* marquee starting point */
int speed; /* marquee scrolling speed */