FLTK 1.3.0
|
Forms pixmap drawing routines. More...
#include <Fl_FormsPixmap.H>
Public Member Functions | |
Fl_FormsPixmap (Fl_Boxtype t, int X, int Y, int W, int H, const char *L=0) | |
Creates a new Fl_FormsPixmap widget using the given box type, position, size and label string. | |
Fl_Pixmap * | Pixmap () const |
Get the internal pixmap pointer. | |
void | Pixmap (Fl_Pixmap *B) |
Set the internal pixmap pointer to an existing pixmap. | |
void | set (char *const *bits) |
Set/create the internal pixmap using raw data. | |
Protected Member Functions | |
void | draw () |
Draws the widget. |
Forms pixmap drawing routines.
Fl_FormsPixmap::Fl_FormsPixmap | ( | Fl_Boxtype | t, |
int | X, | ||
int | Y, | ||
int | W, | ||
int | H, | ||
const char * | L = 0 |
||
) |
Creates a new Fl_FormsPixmap widget using the given box type, position, size and label string.
[in] | t | box type |
[in] | X,Y,W,H | position and size |
[in] | L | widget label, default is no label |
void Fl_FormsPixmap::draw | ( | ) | [protected, virtual] |
Draws the widget.
Never call this function directly. FLTK will schedule redrawing whenever needed. If your widget must be redrawn as soon as possible, call redraw() instead.
Override this function to draw your own widgets.
If you ever need to call another widget's draw method from within your own draw() method, e.g. for an embedded scrollbar, you can do it (because draw() is virtual) like this:
Fl_Widget *s = &scroll; // scroll is an embedded Fl_Scrollbar s->draw(); // calls Fl_Scrollbar::draw()
Implements Fl_Widget.
Fl_Pixmap* Fl_FormsPixmap::Pixmap | ( | ) | const [inline] |
Get the internal pixmap pointer.
void Fl_FormsPixmap::Pixmap | ( | Fl_Pixmap * | B | ) | [inline] |
Set the internal pixmap pointer to an existing pixmap.
[in] | B | existing pixmap |
void Fl_FormsPixmap::set | ( | char *const * | bits | ) |
Set/create the internal pixmap using raw data.
[in] | bits | raw data |