22 #ifndef ASYLUM_SYSTEM_CURSOR_H 23 #define ASYLUM_SYSTEM_CURSOR_H 25 #include "common/events.h" 26 #include "common/rect.h" 28 #include "asylum/shared.h" 33 class GraphicResource;
35 enum CursorAnimation {
36 kCursorAnimationNone = 0,
37 kCursorAnimationLinear = 1,
38 kCursorAnimationMirror = 2
76 void set(ResourceId resourceId, int32 cnt = 0, CursorAnimation anim = kCursorAnimationMirror, int32 frames = -1);
85 void setForceHide(
bool state) { _forceHide = state; }
86 ResourceId getResourceId() {
return _graphicResourceId; }
87 CursorAnimation getAnimation() {
return _animation; }
115 ResourceId _graphicResourceId;
116 uint32 _currentFrame;
117 uint32 _lastFrameIndex;
119 CursorAnimation _animation;
155 #endif // ASYLUM_SYSTEM_CURSOR_H
const Common::Point position() const
Definition: graphics.h:58