diff options
Diffstat (limited to 'marquee.h')
-rw-r--r-- | marquee.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/marquee.h b/marquee.h new file mode 100644 index 0000000..94f3288 --- /dev/null +++ b/marquee.h @@ -0,0 +1,18 @@ +#ifndef MARQUEE +#define MARQUEE +#ifdef __cplusplus +extern "C" { +#endif +typedef struct Marquee { + char* text; + int textLength; + int scrolledBy; + int scrollMax; + char doesScroll; +} marquee_t; +marquee_t make_marquee(char* str); +void scroll_marquee(marquee_t* marquee, int increment); +#ifdef __cplusplus +} +#endif +#endif |