21 #ifndef __EDELIB_ANIMATEBOX_H__
22 #define __EDELIB_ANIMATEBOX_H__
24 #include "edelib-global.h"
25 #include <FL/Fl_Box.H>
26 #include <FL/Fl_Image.H>
50 AnimateBox(
int X,
int Y,
int W,
int H,
const char* l = 0) : Fl_Box(X, Y, W, H, l), draw_rate(0.2), flags(0)
51 { align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE | FL_ALIGN_CLIP); }
57 bool append(Fl_Image *img);
60 bool append(
const char *path);
63 void rate(
float r) { draw_rate = r; }
66 float rate(
void) {
return draw_rate; }
69 void next_image(
void);
72 void start_animation(
void);
75 void stop_animation(
void);
81 void animate_on_show(
void);
AnimateBox(int X, int Y, int W, int H, const char *l=0)
Definition: AnimateBox.h:50
float rate(void)
Definition: AnimateBox.h:66
Animate list of images inside box.
Definition: AnimateBox.h:41
void rate(float r)
Definition: AnimateBox.h:63