mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
added pingpong scrolling
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@849 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user