class fltk::Pixmap
This subclass of fltk::Image
encapsulates the data from an XPM image, and allows you to
make an fltk::Widget use a pixmap as a label, or to just draw
the pixmap directly.
fltk::Pixmap(char *const* data)
Construct using XPM data. The data pointer is simply copied to the
object, so it must point at persistent storage. To use an XPM file do:
#include <fltk/Pixmap.h>
#include "foo.xpm"
...
fltk::Pixmap pixmap = new fltk::Pixmap(foo);
~Pixmap()
The destructor will destroy any X pixmap created. It does not do
anything to the data.
void draw(int x, int y, int w, int h, fltk::Flags = 0)
The image is drawn with the top-left corner at x,y. The
w and h are ignored. The flags are ignored
(although really it should use fltk::INACTIVE to gray out the
image).
void draw(int x, int y, fltk::Flags = 0)
Draws the image with the upper-left corner at x,y. This is
the same as doing draw(x, y, this->w, this->h, flags).