added pingpong scrolling

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@849 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
michux
2008-01-28 17:03:27 +00:00
parent 64fa72b054
commit 2e6a20b9a8
2 changed files with 53 additions and 5 deletions

View File

@@ -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;