23 #ifndef BAGEL_BAGLIB_FMOVIE_H 24 #define BAGEL_BAGLIB_FMOVIE_H 26 #include "video/smk_decoder.h" 27 #include "bagel/spacebar/boflib/gui/dialog.h" 28 #include "bagel/boflib/rect.h" 29 #include "bagel/boflib/error.h" 30 #include "bagel/boflib/palette.h" 38 MOVIE_STOPPED, MOVIE_PAUSED, MOVIE_FORWARD, MOVIE_REVERSE
46 MovieStatus _movieStatus;
54 bool _useNewPaletteFl;
55 bool _blackOutWindowFl;
67 virtual bool openMovie(
const char *sFilename);
74 void onReSize(
CBofSize *pSize)
override {
78 virtual bool reverse();
80 void onLButtonUp(uint32 flags,
CBofPoint *point,
void * =
nullptr)
override {
81 onButtonUp(flags, point);
83 virtual void onButtonUp(uint32 flags,
CBofPoint *point) {
85 void onPaint(
CBofRect *pRect)
override;
86 virtual void onMovieDone();
87 void onClose()
override;
88 void onMainLoop()
override;
93 void onKeyHit(uint32 keyCode, uint32 repCount)
override;
105 CBofRect *bounds =
nullptr,
bool useNewPalette =
true,
bool blackOutWindow =
false);
116 virtual bool open(
const char *filename =
nullptr,
CBofRect *bounds =
nullptr);
118 virtual bool play(
bool loop,
bool escCanStop =
true);
119 virtual bool reverse(
bool loop,
bool escCanStop =
true);
120 virtual bool pause();
123 virtual MovieStatus status() {
127 virtual bool seekToStart();
128 virtual bool seekToEnd();
130 virtual uint32 getFrame();
131 virtual bool setFrame(uint32 frameNum);
133 virtual bool centerRect();
void onKeyHit(uint32 keyCode, uint32 repCount) override
virtual ErrorCode initialize(CBofWindow *pParent)
Definition: smk_decoder.h:77
virtual void closeMovie()
CBagFMovie(CBofWindow *parent=nullptr, const char *filename=nullptr, CBofRect *bounds=nullptr, bool useNewPalette=true, bool blackOutWindow=false)
virtual bool openMovie(const char *sFilename)
virtual bool open(const char *filename=nullptr, CBofRect *bounds=nullptr)