24 # include "Fl_Image.H"
46 #if defined(__APPLE__) || defined(WIN32)
52 #endif // __APPLE__ || WIN32
58 Fl_Image(W,H,0), array(bits), alloc_array(0), id_(0) {
data((
const char **)&array, 1);}
61 Fl_Image(W,H,0), array((const
uchar *)bits), alloc_array(0), id_(0) {
data((
const char **)&array, 1);}
65 virtual void draw(
int X,
int Y,
int W,
int H,
int cx=0,
int cy=0);
66 void draw(
int X,
int Y) {
draw(X, Y,
w(),
h(), 0, 0);}
virtual void label(Fl_Widget *w)
The label() methods are an obsolete way to set the image attribute of a widget or menu item...
Definition: Fl_Image.cxx:109
int alloc_array
Non-zero if array points to bitmap data allocated internally.
Definition: Fl_Bitmap.H:42
The Mac OS X-specific graphics class.
Definition: Fl_Device.H:410
Fl_Image is the base class used for caching and drawing all kinds of images in FLTK.
Definition: Fl_Image.H:44
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0)
Draws the image with a bounding box.
Definition: Fl_Image.cxx:52
Fl_Image * copy()
The copy() method creates a copy of the specified image.
Definition: Fl_Image.H:129
The Xlib-specific graphics class.
Definition: Fl_Device.H:493
const char *const * data() const
Returns a pointer to the current image data array.
Definition: Fl_Image.H:111
Fl_Bitmap(const char *bits, int W, int H)
The constructors create a new bitmap from the specified bitmap data.
Definition: Fl_Bitmap.H:60
const uchar * array
pointer to raw bitmap data
Definition: Fl_Bitmap.H:40
int w() const
Returns the current image width in pixels.
Definition: Fl_Image.H:84
The Fl_Bitmap class supports caching and drawing of mono-color (bitmap) images.
Definition: Fl_Bitmap.H:33
virtual void uncache()
If the image has been cached for display, delete the cache data.
Definition: Fl_Image.cxx:49
int h() const
Returns the current image height in pixels.
Definition: Fl_Image.H:87
The MSWindows-specific graphics class.
Definition: Fl_Device.H:447
unsigned char uchar
unsigned char
Definition: fl_types.h:30
Fl_Bitmap(const uchar *bits, int W, int H)
The constructors create a new bitmap from the specified bitmap data.
Definition: Fl_Bitmap.H:57