21 #ifndef DIRECTOR_CURSOR_H 22 #define DIRECTOR_CURSOR_H 24 #include "graphics/maccursor.h" 26 #include "graphics/macgui/macwindowmanager.h" 28 #include "engines/director/lingo/lingo.h" 46 void readFromCast(
Datum casts);
47 void readFromResource(
Datum resourceId);
48 void readBuiltinType(
Datum resourceId);
49 bool readFromArchive(
Archive *archive, uint16 resourceId);
51 bool isEmpty() {
return Datum(0).equalTo(_cursorResId);}
52 bool operator==(
const Cursor &c);
56 const byte *
getPalette()
const override {
return _usePalette ? _palette :
nullptr; }
59 Graphics::MacCursorType _cursorType;
63 void resetCursor(Graphics::MacCursorType type,
bool shouldClear =
false,
Datum resId =
Datum(0));
74 bool operator==(
const Cursor &c);
77 Graphics::MacCursorType _cursorType;
byte getKeyColor() const override
Definition: cursor.h:55
Definition: formatinfo.h:28
const byte * getPalette() const override
Definition: cursor.h:56
Definition: maccursor.h:48