23 #ifndef BAGEL_BAGLIB_FMOVIE_H 24 #define BAGEL_BAGLIB_FMOVIE_H 26 #include "video/smk_decoder.h" 27 #include "bagel/boflib/gui/dialog.h" 28 #include "bagel/boflib/rect.h" 29 #include "bagel/boflib/error.h" 30 #include "bagel/boflib/gfx/palette.h" 36 enum MovieStatus { MOVIE_STOPPED, MOVIE_PAUSED, MOVIE_FORWARD, MOVIE_REVERSE };
43 MovieStatus _movieStatus;
51 bool _useNewPaletteFl;
52 bool _blackOutWindowFl;
64 virtual bool openMovie(
const char *sFilename);
71 void onReSize(
CBofSize *pSize)
override {};
74 virtual bool reverse();
76 void onLButtonUp(uint32 flags,
CBofPoint *point,
void * =
nullptr)
override {
77 onButtonUp(flags, point);
79 virtual void onButtonUp(uint32 flags,
CBofPoint *point) {};
80 void onPaint(
CBofRect *pRect)
override;
81 virtual void onMovieDone();
82 void onClose()
override;
83 void onMainLoop()
override;
88 void onKeyHit(uint32 keyCode, uint32 repCount)
override;
100 CBofRect *bounds =
nullptr,
bool useNewPalette =
true,
bool blackOutWindow =
false);
111 virtual bool open(
const char *filename =
nullptr,
CBofRect *bounds =
nullptr);
113 virtual bool play(
bool loop,
bool escCanStop =
true);
114 virtual bool reverse(
bool loop,
bool escCanStop =
true);
115 virtual bool pause();
118 virtual MovieStatus status() {
122 virtual bool seekToStart();
123 virtual bool seekToEnd();
125 virtual uint32 getFrame();
126 virtual bool setFrame(uint32 frameNum);
128 virtual bool centerRect();
virtual bool open(const char *filename=nullptr, CBofRect *bounds=nullptr)
CBagFMovie(CBofWindow *parent=nullptr, const char *filename=nullptr, CBofRect *bounds=nullptr, bool useNewPalette=true, bool blackOutWindow=false)
virtual ErrorCode initialize(CBofWindow *pParent)
Definition: smk_decoder.h:76
virtual bool openMovie(const char *sFilename)
virtual void closeMovie()
void onKeyHit(uint32 keyCode, uint32 repCount) override