24 #include <FL/Fl_Box.H>
34 typedef Fl_Box Inherited;
54 Fl_Anim_GIF(
int x_,
int y_,
int w_,
int h_,
const char *name_ = 0,
55 bool start_ =
true,
bool optimize_mem_ =
false,
int debug_ = 0);
57 bool start_ =
true,
bool optimize_mem_ =
false,
int debug_ = 0);
70 bool autoresize()
const {
return _autoresize; }
106 double delay(
int frame_)
const;
110 void delay(
int frame_,
double delay_);
117 int frame_y(
int frame_)
const;
124 int frame_h(
int frame_)
const;
132 void frame(
int frame_);
141 Fl_Image *
image()
const;
145 Fl_Image *
image(
int frame_)
const;
157 bool load(
const char *name_);
177 const char *
name()
const;
178 bool playing()
const {
return _valid && !_stopped; }
189 void speed(
double speed_);
190 double speed()
const;
224 virtual void resize(
int x_,
int y_,
int w_,
int h_);
228 void set_frame(
int frame_);
230 static void cb_animate(
void *d_);
231 static void cb_gl_frame(
void *ctx_, GIF_WHDR *whdr_);
232 static void cb_gl_extension(
void *ctx_, GIF_WHDR *whdr_);
233 void scale_frame(
int frame_ = -1);
236 void onFrameLoaded(GIF_WHDR &whdr_);
237 void onExtensionLoaded(GIF_WHDR &whdr_);
238 void _init(
const char*name_,
bool start_,
bool optimize_mem_,
int debug_);
250 #endif // Fl_Anim_GIF_H
static double min_delay
Definition: Fl_Anim_GIF.H:173
int frame() const
Definition: Fl_Anim_GIF.cxx:772
Fl_Anim_GIF * copy()
Definition: Fl_Anim_GIF.cxx:672
bool valid() const
Definition: Fl_Anim_GIF.cxx:1006
bool load(const char *name_)
Definition: Fl_Anim_GIF.cxx:835
static bool loop
Definition: Fl_Anim_GIF.H:166
virtual void desaturate()
Definition: Fl_Anim_GIF.cxx:715
int debug() const
Definition: Fl_Anim_GIF.cxx:696
virtual void draw()
Definition: Fl_Anim_GIF.cxx:721
void autoresize(bool autoresize)
Definition: Fl_Anim_GIF.cxx:630
bool uncache() const
Definition: Fl_Anim_GIF.cxx:1001
Fl_Anim_GIF & resize(int W_, int H_)
Definition: Fl_Anim_GIF.cxx:907
bool start()
Definition: Fl_Anim_GIF.cxx:978
Fl_Image * image() const
Definition: Fl_Anim_GIF.cxx:805
bool stop()
Definition: Fl_Anim_GIF.cxx:989
const char * name() const
Definition: Fl_Anim_GIF.cxx:875
~Fl_Anim_GIF()
Definition: Fl_Anim_GIF.cxx:623
Definition: Fl_Anim_GIF.H:33
int canvas_w() const
Definition: Fl_Anim_GIF.cxx:641
int frames() const
Definition: Fl_Anim_GIF.cxx:767
virtual void color_average(Fl_Color c_, float i_)
Definition: Fl_Anim_GIF.cxx:659
int frame_w(int frame_) const
Definition: Fl_Anim_GIF.cxx:791
int canvas_h() const
Definition: Fl_Anim_GIF.cxx:646
int frame_x(int frame_) const
Definition: Fl_Anim_GIF.cxx:777
double delay(int frame_) const
Definition: Fl_Anim_GIF.cxx:701