diff options
author | Kai Stevenson <kai@kaistevenson.com> | 2024-06-12 02:27:48 +0100 |
---|---|---|
committer | Kai Stevenson <kai@kaistevenson.com> | 2024-06-12 02:27:48 +0100 |
commit | c15ecfa48e45e5475b31d109254d0f35c80470b6 (patch) | |
tree | 36c97d0c2b34b5a535111de91cab09aefe9a5d77 /marquee.h | |
parent | 37a2e3605b29822e6bac1bacd54e8f7497bde6a7 (diff) |
basic functionality done
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 |