mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-11 03:08:41 +00:00
23 lines
531 B
C
23 lines
531 B
C
#ifndef TOS_UI_ANIMATION_H
|
|
#define TOS_UI_ANIMATION_H
|
|
|
|
#include "../stdlib/Types.h"
|
|
#include "../animation/AnimationEaseType.h"
|
|
|
|
#define UI_ANIMATION_ACTIVE_FLAG 0x80000000
|
|
|
|
struct UIAnimationState {
|
|
uint64 start;
|
|
uint32 duration;
|
|
// Element specific use (e.g. cursor uses 0/1 for visible/invisible for blinking)
|
|
// The highest bit indicates if the animation is active or not
|
|
int32 state;
|
|
AnimationEaseType anim_type;
|
|
};
|
|
|
|
struct UIAnimation {
|
|
uint32 duration;
|
|
AnimationEaseType anim_type;
|
|
};
|
|
|
|
#endif |