aboutsummaryrefslogtreecommitdiffstats
path: root/widget_text.h
diff options
context:
space:
mode:
Diffstat (limited to 'widget_text.h')
-rw-r--r--widget_text.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/widget_text.h b/widget_text.h
index b3bd0a6..2ca6f30 100644
--- a/widget_text.h
+++ b/widget_text.h
@@ -30,7 +30,7 @@
#include "property.h"
-typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE, ALIGN_AUTOMATIC } TEXT_ALIGN;
+typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE, ALIGN_AUTOMATIC, ALIGN_PINGPONG } TEXT_ALIGN;
typedef struct WIDGET_TEXT {
PROPERTY prefix; /* label on the left side */
@@ -45,6 +45,8 @@ typedef struct WIDGET_TEXT {
int update; /* update interval */
int scroll; /* marquee starting point */
int speed; /* marquee scrolling speed */
+ int direction; /* pingpong direction, 0=right, 1=left */
+ int delay; /* pingpong scrolling, wait before switch direction */
} WIDGET_TEXT;