|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
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) | |
| void | set (char *const *bits) |
| void | Pixmap (Fl_Pixmap *B) |
| Fl_Pixmap * | Pixmap () const |
Protected Member Functions | |
| void | draw () |
Forms pixmap drawing routines.
Definition at line 40 of file Fl_FormsPixmap.H.
| 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 |
Definition at line 37 of file forms_pixmap.cxx.
References Fl_Widget::align(), Fl_Widget::box(), Fl_Widget::color(), FL_ALIGN_BOTTOM, and FL_BLACK.
| 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.
Definition at line 55 of file forms_pixmap.cxx.
References Fl_Widget::box(), Fl_Widget::color(), Fl_Pixmap::draw(), Fl_Widget::draw_box(), Fl_Widget::draw_label(), fl_color(), Fl_Widget::h(), Fl_Widget::selection_color(), Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().
| Fl_Pixmap* Fl_FormsPixmap::Pixmap | ( | ) | const [inline] |
| void Fl_FormsPixmap::Pixmap | ( | Fl_Pixmap * | B | ) | [inline] |
Set the internal pixmap pointer to an existing pixmap.
| [in] | B | existing pixmap |
Definition at line 53 of file Fl_FormsPixmap.H.
References b.
| void Fl_FormsPixmap::set | ( | char *const * | bits | ) |
Set/create the internal pixmap using raw data.
| [in] | bits | raw data |
Definition at line 50 of file forms_pixmap.cxx.