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); };
57 bool isDirty(
Sprite *nextSprite =
nullptr);
61 bool isMatteIntersect(
Channel *channel);
62 bool isMatteWithin(
Channel *channel);
64 bool isVideoDirectToStage();
66 inline void setWidth(
int w) { _sprite->setWidth(w); replaceWidget(); _dirty =
true; };
67 inline void setHeight(
int h) { _sprite->setHeight(h); replaceWidget(); _dirty =
true; };
68 inline void setBbox(
int l,
int t,
int r,
int b) { _sprite->setBbox(l, t, r, b); replaceWidget(); _dirty =
true; };
69 void setPosition(
int x,
int y,
bool force =
false);
71 void setClean(
Sprite *nextSprite,
bool partial =
false);
72 void setStretch(
bool enabled);
74 void setEditable(
bool editable);
75 void replaceSprite(
Sprite *nextSprite);
78 void updateTextCast();
82 void updateGlobalAttr();
85 bool canKeepWidget(
Sprite *currentSprite,
Sprite *nextSprite);
87 int getMouseChar(
int x,
int y);
88 int getMouseWord(
int x,
int y);
89 int getMouseItem(
int x,
int y);
90 int getMouseLine(
int x,
int y);
92 void updateVideoTime();
95 bool hasSubChannels();
Definition: managed_surface.h:51
Definition: atari-cursor.h:38
Definition: formatinfo.h:28
Definition: director.h:330