33# if defined(__sgi) && !defined(_COMPILER_VERSION)
42 friend class Fl_Quartz_Graphics_Driver;
43 friend class Fl_GDI_Graphics_Driver;
44 friend class Fl_GDI_Printer_Graphics_Driver;
45 friend class Fl_Xlib_Graphics_Driver;
48 void set_data(
const char *
const *p);
49 int prepare(
int XP,
int YP,
int WP,
int HP,
int &cx,
int &cy,
50 int &X,
int &Y,
int &W,
int &H);
63#if FLTK_ABI_VERSION < 10301
68#if defined(__APPLE__) || defined(WIN32)
79 explicit Fl_Pixmap(
char *
const * D) : Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
81 explicit Fl_Pixmap(
uchar*
const * D) : Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
83 explicit Fl_Pixmap(
const char *
const * D) : Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
85 explicit Fl_Pixmap(
const uchar*
const * D) : Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((
const char*
const*)D); measure();}
91 virtual void draw(
int X,
int Y,
int W,
int H,
int cx=0,
int cy=0);
92 void draw(
int X,
int Y) {
draw(X, Y,
w(),
h(), 0, 0);}
93 virtual void label(Fl_Widget*w);
94 virtual void label(Fl_Menu_Item*m);
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition Enumerations.H:932
Fl_Image, Fl_RGB_Image classes.
Base class for image caching and drawing.
Definition Fl_Image.H:55
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:66
virtual void desaturate()
The desaturate() method converts an image to grayscale.
Definition Fl_Image.cxx:117
virtual void color_average(Fl_Color c, float i)
The color_average() method averages the colors in the image with the FLTK color value c.
Definition Fl_Image.cxx:106
int w() const
Returns the current image width in pixels.
Definition Fl_Image.H:111
Fl_Image * copy()
The copy() method creates a copy of the specified image.
Definition Fl_Image.H:150
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:127
int h() const
Returns the current image height in pixels.
Definition Fl_Image.H:115
virtual void uncache()
If the image has been cached for display, delete the cache data.
Definition Fl_Image.cxx:63
The Fl_Pixmap class supports caching and drawing of colormap (pixmap) images, including transparency.
Definition Fl_Pixmap.H:41
Fl_Pixmap(char *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition Fl_Pixmap.H:79
Fl_Pixmap(uchar *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition Fl_Pixmap.H:81
Fl_Pixmap(const uchar *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition Fl_Pixmap.H:85
Fl_Pixmap(const char *const *D)
The constructors create a new pixmap from the specified XPM data.
Definition Fl_Pixmap.H:83
unsigned char uchar
unsigned char
Definition fl_types.h:30