22 #ifndef DIRECTOR_CASTMEMBER_CASTMEMBER_H 23 #define DIRECTOR_CASTMEMBER_CASTMEMBER_H 25 #include "director/archive.h" 26 #include "director/stxt.h" 28 #include "director/lingo/lingo-object.h" 35 class SeekableReadStream;
36 class SeekableReadStreamEndian;
41 struct CastMemberInfo;
51 Cast *getCast() {
return _cast; }
52 uint16 getID() {
return _castId; }
56 virtual void unload();
57 bool isLoaded() {
return _loaded; }
59 virtual bool isEditable() {
return false; }
60 virtual void setEditable(
bool editable) {}
61 virtual bool isModified() {
return _modified; }
62 void setModified(
bool modified);
66 virtual Common::Rect getInitialRect() {
return _initialRect; }
68 virtual void setColors(uint32 *fgcolor, uint32 *bgcolor) {
return; }
69 virtual uint32 getForeColor() {
return 0; }
70 virtual void setForeColor(uint32 fgCol) {
return; }
71 virtual uint32 getBackColor() {
return 0; }
72 virtual void setBackColor(uint32 bgCol) {
return; }
76 bool setProp(
const Common::String &propName,
const Datum &value,
bool force =
false)
override;
77 bool hasField(
int field)
override;
78 Datum getField(
int field)
override;
79 bool setField(
int field,
const Datum &value)
override;
82 void releaseWidget() { _widget =
nullptr; }
90 virtual Common::Rect getBbox(int16 currentWidth, int16 currentHeight);
Definition: lingo-object.h:71
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: castmember.h:118
Definition: castmember.h:45
Definition: castmember.h:126