22 #ifndef DIRECTOR_CHANNEL_H 23 #define DIRECTOR_CHANNEL_H 25 #include "director/cursor.h" 26 #include "director/sprite.h" 50 inline int getWidth() {
return _sprite->_width; };
51 inline int getHeight() {
return _sprite->_height; };
52 inline Common::Point getPosition() {
return _sprite->getPosition(); };
54 inline Common::Rect getBbox(
bool unstretched =
false) {
return _sprite->getBbox(unstretched); };
58 bool isDirty(
Sprite *nextSprite =
nullptr);
62 bool isMatteIntersect(
Channel *channel);
63 bool isMatteBoxIntersect(
Channel *channel);
64 bool isMatteWithin(
Channel *channel);
66 bool isVideoDirectToStage();
68 inline void setWidth(
int w) { _sprite->setWidth(w); replaceWidget(); setNeedsDraw(); };
69 inline void setHeight(
int h) { _sprite->setHeight(h); replaceWidget(); setNeedsDraw(); };
70 inline void setBbox(
int l,
int t,
int r,
int b) { _sprite->setBbox(l, t, r, b); replaceWidget(); setNeedsDraw(); };
72 void setNeedsDraw() { _needsDraw =
true; }
73 void setPosition(
int x,
int y,
bool force =
false);
75 void setClean(
Sprite *nextSprite,
bool partial =
false);
76 void setStretch(
bool enabled);
78 void setEditable(
bool editable);
79 void replaceSprite(
Sprite *nextSprite);
82 void updateTextCast();
86 void updateGlobalAttr();
89 bool canKeepWidget(
Sprite *currentSprite,
Sprite *nextSprite);
91 int getMouseChar(
int x,
int y);
92 int getMouseWord(
int x,
int y);
93 int getMouseItem(
int x,
int y);
94 int getMouseLine(
int x,
int y);
96 void updateVideoTime();
99 bool hasSubChannels();
Definition: managed_surface.h:51
Definition: atari-cursor.h:35
Definition: formatinfo.h:28
Definition: director.h:350