From 2e6a20b9a8a2bc2f3c2023d0cd750b6e198ba743 Mon Sep 17 00:00:00 2001 From: michux Date: Mon, 28 Jan 2008 17:03:27 +0000 Subject: added pingpong scrolling git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@849 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- widget_text.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'widget_text.h') 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; -- cgit v1.2.3