22 #ifndef Fl_Shared_Image_H
23 # define Fl_Shared_Image_H
29 typedef Fl_Image *(*Fl_Shared_Handler)(
const char *name,
uchar *header,
57 #if FLTK_ABI_VERSION >= 10304
63 static int num_images_;
64 static int alloc_images_;
65 static Fl_Shared_Handler *handlers_;
66 static int num_handlers_;
67 static int alloc_handlers_;
86 const char *
name() {
return name_; }
109 virtual void draw(
int X,
int Y,
int W,
int H,
int cx,
int cy);
110 void draw(
int X,
int Y) {
draw(X, Y,
w(),
h(), 0, 0); }
111 void scale(
int width,
int height,
int proportional = 1,
int can_expand = 0);
118 static int num_images();
119 static void add_handler(Fl_Shared_Handler f);
120 static void remove_handler(Fl_Shared_Handler f);
140 #endif // !Fl_Shared_Image_H