diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-09-18 19:09:34 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-09-18 19:09:34 +0000 |
| commit | e8478458bf96bb62158a61b39416e515767d94a7 (patch) | |
| tree | 0ba17d2b9ae36dc475c63e1d0499204208a632f7 /src/forms_bitmap.cxx | |
| parent | d75b9717c7c1d607a83d0b9625296a0a3bce25c3 (diff) | |
Doxygen documentation: Fixed most important warnings for the Fl_Widget, Fl_Window, Fl_Valuator classes that should be now a 100% documented. For the rest I drastically reduced the undocumented APIs, but many others (less important) remains.
It looks and feels pretty good now :-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/forms_bitmap.cxx')
| -rw-r--r-- | src/forms_bitmap.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/forms_bitmap.cxx b/src/forms_bitmap.cxx index 538b9a622..3b35f264b 100644 --- a/src/forms_bitmap.cxx +++ b/src/forms_bitmap.cxx @@ -26,7 +26,7 @@ // #include <FL/forms.H> - +/** Creates a bitmap widget from a box type, position, size and optional label specification */ Fl_FormsBitmap::Fl_FormsBitmap( Fl_Boxtype t, int X, int Y, int W, int H, const char* l) : Fl_Widget(X, Y, W, H, l) { @@ -35,12 +35,13 @@ Fl_FormsBitmap::Fl_FormsBitmap( color(FL_BLACK); align(FL_ALIGN_BOTTOM); } - +/** Sets a new bitmap bits with size W,H. Deletes the previous one.*/ void Fl_FormsBitmap::set(int W, int H, const uchar *bits) { delete b; bitmap(new Fl_Bitmap(bits, W, H)); } +/** Draws the bitmap and its associated box. */ void Fl_FormsBitmap::draw() { draw_box(box(), selection_color()); if (b) {fl_color(color()); b->draw(x(), y(), w(), h());} |
