diff options
author | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-01-28 17:03:27 +0000 |
---|---|---|
committer | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-01-28 17:03:27 +0000 |
commit | 2e6a20b9a8a2bc2f3c2023d0cd750b6e198ba743 (patch) | |
tree | 9586dc276a0ce12aa1bced14c3dd6c370ed2fe38 /widget_text.h | |
parent | 64fa72b0547217afe553718f7e2ac7abe6f55495 (diff) | |
download | lcd4linux-2e6a20b9a8a2bc2f3c2023d0cd750b6e198ba743.tar.gz |
added pingpong scrolling
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@849 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | widget_text.h | 4 |
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; |