aboutsummaryrefslogtreecommitdiff
path: root/src/animation.h
diff options
context:
space:
mode:
authorJames Magahern <james@magahern.com>2019-01-20 20:57:52 -0800
committerJames Magahern <james@magahern.com>2019-01-20 20:58:13 -0800
commit4b8abf88387a1bf732afd5c1a6abc5b8b486341c (patch)
treea50c6c6a6bcc51769c5b74c164488cf0f2115ae6 /src/animation.h
parentRed flash animation on bad password (diff)
Spinner animation and tweaks to memory management
Diffstat (limited to 'src/animation.h')
-rw-r--r--src/animation.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/animation.h b/src/animation.h
index a74bb60..108fbe2 100644
--- a/src/animation.h
+++ b/src/animation.h
@@ -23,6 +23,7 @@ typedef enum {
ACursorAnimation,
ALogoAnimation,
ARedFlashAnimation,
+ ASpinnerAnimation,
} AnimationType;
typedef struct {
@@ -39,10 +40,15 @@ typedef struct {
unsigned flash_count;
} RedFlashAnimation;
+typedef struct {
+ double rotation;
+} SpinnerAnimation;
+
typedef union {
CursorAnimation cursor_anim;
LogoAnimation logo_anim;
RedFlashAnimation redflash_anim;
+ SpinnerAnimation spinner_anim;
} Animation;
typedef struct {