Public Types | |
enum | Mode { kModeClosed, kModeOpen, kModePaused, kModePlaying, kModeSeeking, kModeStopped } |
Public Types inherited from Buried::Window | |
enum | WindowShowMode { kWindowShow, kWindowHide, kWindowShowNormal } |
enum | WindowPosFlags { kWindowPosNoFlags = 0, kWindowPosNoSize = (1 << 0), kWindowPosNoZOrder = (1 << 1), kWindowPosHideWindow = (1 << 2), kWindowPosShowWindow = (1 << 3), kWindowPosNoMove = (1 << 4), kWindowPosNoActivate = (1 << 5) } |
Public Member Functions | |
VideoWindow (BuriedEngine *vm, Window *parent=0) | |
void | updateVideo () |
void | pauseVideo () |
void | resumeVideo () |
bool | playVideo () |
bool | playToFrame (int frame) |
bool | seekToFrame (int frame) |
void | stopVideo () |
int | getCurFrame () |
int | getFrameCount () |
void | setSourceRect (const Common::Rect &srcRect) |
void | setDestRect (const Common::Rect &dstRect) |
void | setAudioTrack (int track) |
bool | openVideo (const Common::Path &fileName) |
void | closeVideo () |
Mode | getMode () const |
void | onPaint () |
void | onKeyUp (const Common::KeyState &key, uint flags) |
Public Member Functions inherited from Buried::Window | |
Window (BuriedEngine *vm, Window *parent, bool visible=false) | |
virtual bool | onEraseBackground () |
virtual void | onKeyDown (const Common::KeyState &key, uint flags) |
virtual void | onTimer (uint timer) |
virtual void | onKillFocus (Window *newWindow) |
virtual void | onSetFocus (Window *oldWindow) |
virtual void | onLButtonUp (const Common::Point &point, uint flags) |
virtual void | onLButtonDown (const Common::Point &point, uint flags) |
virtual void | onMouseMove (const Common::Point &point, uint flags) |
virtual void | onMButtonUp (const Common::Point &point, uint flags) |
virtual void | onRButtonUp (const Common::Point &point, uint flags) |
virtual void | onRButtonDown (const Common::Point &point, uint flags) |
virtual bool | onSetCursor (uint message) |
virtual void | onEnable (bool enable) |
void | invalidateRect (const Common::Rect &rect, bool erase=true) |
void | invalidateWindow (bool erase=true) |
Window * | getParent () const |
const Common::Rect & | getRect () const |
Common::Rect | getClientRect () const |
Common::Rect | getAbsoluteRect () const |
void | updateWindow () |
void | enableWindow (bool enable) |
bool | isWindowEnabled () const |
void | setWindowPos (const Window *insertAfter, int x, int y, int width, int height, uint flags) |
void | showWindow (WindowShowMode showMode) |
bool | isWindowVisible () const |
Window * | setFocus () |
Window * | setCapture () |
void | sendMessage (Message *message) |
void | postMessage (Message *message) |
Window * | childWindowAtPoint (const Common::Point &point) |
Common::Point | convertPointToGlobal (const Common::Point &point) |
Common::Point | convertPointToLocal (const Common::Point &point) |
Common::Point | convertPointToWindow (const Common::Point &point, Window *dest) |
Additional Inherited Members | |
Protected Member Functions inherited from Buried::Window | |
uint | setTimer (uint elapse) |
bool | killTimer (uint timer) |
Common::Rect | makeAbsoluteRect (const Common::Rect &rect) const |
Protected Attributes inherited from Buried::Window | |
BuriedEngine * | _vm |
Window * | _parent |
Common::Rect | _rect |