23 #ifndef BAGEL_BOFLIB_GUI_MOVIE_H 24 #define BAGEL_BOFLIB_GUI_MOVIE_H 26 #include "graphics/managed_surface.h" 27 #include "video/smk_decoder.h" 28 #include "bagel/boflib/error.h" 29 #include "bagel/boflib/gui/dialog.h" 30 #include "bagel/boflib/rect.h" 36 enum MVSTATUS { STOPPED, PAUSED, FORWARD, REVERSE};
44 bool _bBlackOutWindow;
48 virtual ErrorCode initialize(
CBofWindow *pParent);
50 virtual bool openMovie(
const char *sFilename);
51 virtual void closeMovie();
53 virtual void onReSize(
CBofSize *pSize);
56 virtual bool reverse();
58 virtual void onLButtonUp(uint32 nFlags,
CBofPoint *pPoint,
void * =
nullptr) {
59 onButtonUp(nFlags, pPoint);
61 virtual void onRButtonUp(uint32 nFlags,
CBofPoint *pPoint) {
62 onButtonUp(nFlags, pPoint);
64 virtual void onButtonUp(uint32 nFlags,
CBofPoint *pPoint);
65 virtual void onPaint(
CBofRect *pRect);
66 virtual void onMovieDone();
67 virtual void onClose();
68 virtual void onMainLoop();
69 virtual void onKeyHit(uint32 lKey, uint32 lRepCount);
73 CBofMovie(
CBofWindow *pParent =
nullptr,
const char *pszFilename =
nullptr,
CBofRect *pBounds =
nullptr,
bool bStretch =
false,
bool bUseNewPalette =
true,
bool bBlackOutWindow =
false);
76 virtual bool open(
const char *sFilename =
nullptr,
CBofRect *pBounds =
nullptr);
78 virtual bool play(
bool bLoop,
bool bEscCanStop =
true);
79 virtual bool reverse(
bool bLoop,
bool bEscCanStop =
true);
83 virtual MVSTATUS status() {
87 virtual bool seekToStart();
88 virtual bool seekToEnd();
90 virtual uint32 getFrame();
91 virtual bool setFrame(uint32 dwFrameNum);
93 virtual bool centerRect();
103 ErrorCode bofPlayMovie(
CBofWindow *pParent,
const char *pszMovieFile,
CBofRect *pRect =
nullptr);
Definition: managed_surface.h:51
Definition: smk_decoder.h:76