17#ifndef Fl_Anim_Gif_Image_H
18#define Fl_Anim_Gif_Image_H
24#include <FL/Fl_GIF_Image.H>
51 DONT_RESIZE_CANVAS = 2,
58 DONT_SET_AS_IMAGE = 4,
83 const size_t length,
Fl_Widget *canvas = 0,
84 unsigned short flags = 0);
89 bool load(const
char *name, const
unsigned char *imgdata=NULL,
size_t imglength=0);
93 void frame_uncache(
bool uncache);
94 bool frame_uncache() const;
95 double delay(
int frame_) const;
96 void delay(
int frame,
double delay);
97 void canvas(
Fl_Widget *canvas,
unsigned short flags = 0);
100 int canvas_h() const;
101 bool is_animated() const;
102 const
char *name() const;
103 void speed(
double speed);
104 double speed() const;
108 void frame(
int frame);
124 int frame_x(
int frame)
const;
125 int frame_y(
int frame)
const;
126 int frame_w(
int frame)
const;
127 int frame_h(
int frame)
const;
132 Fl_Image *copy()
const {
return Fl_Pixmap::copy(); }
134 void draw(
int x,
int y,
int w,
int h,
int cx = 0,
int cy = 0)
FL_OVERRIDE;
141 static
int frame_count(const
char *name, const
unsigned char *imgdata = NULL,
size_t imglength = 0);
159 static
double min_delay;
165 void set_frame(
int frame);
167 static
void cb_animate(
void *d);
176 unsigned short flags_;
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1101
The Fl_Anim_GIF_Image class supports loading, caching, and drawing of animated Compuserve GIFSM image...
Definition Fl_Anim_GIF_Image.H:27
Flags
When opening an Fl_Anim_GIF_Image there are some options that can be passed in a flags value.
Definition Fl_Anim_GIF_Image.H:37
The Fl_GIF_Image class supports loading, caching, and drawing of Compuserve GIFSM images.
Definition Fl_GIF_Image.H:29
Base class for image caching, scaling and drawing.
Definition Fl_Image.H:60
void desaturate() FL_OVERRIDE
The desaturate() method converts an image to grayscale.
Definition Fl_Pixmap.cxx:322
void color_average(Fl_Color c, float i) FL_OVERRIDE
The color_average() method averages the colors in the image with the provided FLTK color value.
Definition Fl_Pixmap.cxx:228
static int has_timeout(Fl_Timeout_Handler cb, void *data=0)
Returns true if the timeout exists and has not been called yet.
Definition Fl.cxx:342
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
Definition Fl_GIF_Image.H:61