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/spacebar/boflib/gui/dialog.h" 30 #include "bagel/boflib/rect.h" 38 STOPPED, PAUSED, FORWARD, REVERSE
47 bool _bBlackOutWindow;
51 virtual ErrorCode initialize(
CBofWindow *pParent);
53 virtual bool openMovie(
const char *sFilename);
54 virtual void closeMovie();
56 virtual void onReSize(
CBofSize *pSize);
59 virtual bool reverse();
61 virtual void onLButtonUp(uint32 nFlags,
CBofPoint *pPoint,
void * =
nullptr) {
62 onButtonUp(nFlags, pPoint);
64 virtual void onRButtonUp(uint32 nFlags,
CBofPoint *pPoint) {
65 onButtonUp(nFlags, pPoint);
67 virtual void onButtonUp(uint32 nFlags,
CBofPoint *pPoint);
68 virtual void onPaint(
CBofRect *pRect);
69 virtual void onMovieDone();
70 virtual void onClose();
71 virtual void onMainLoop();
72 virtual void onKeyHit(uint32 lKey, uint32 lRepCount);
76 CBofMovie(
CBofWindow *pParent =
nullptr,
const char *pszFilename =
nullptr,
CBofRect *pBounds =
nullptr,
bool bStretch =
false,
bool bUseNewPalette =
true,
bool bBlackOutWindow =
false);
79 virtual bool open(
const char *sFilename =
nullptr,
CBofRect *pBounds =
nullptr);
81 virtual bool play(
bool bLoop,
bool bEscCanStop =
true);
82 virtual bool reverse(
bool bLoop,
bool bEscCanStop =
true);
86 virtual MVSTATUS status() {
90 virtual bool seekToStart();
91 virtual bool seekToEnd();
93 virtual uint32 getFrame();
94 virtual bool setFrame(uint32 dwFrameNum);
96 virtual bool centerRect();
106 ErrorCode bofPlayMovie(
CBofWindow *pParent,
const char *pszMovieFile,
CBofRect *pRect =
nullptr);
Definition: managed_surface.h:51
Definition: smk_decoder.h:77