From e8478458bf96bb62158a61b39416e515767d94a7 Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Thu, 18 Sep 2008 19:09:34 +0000 Subject: 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 --- src/forms_bitmap.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/forms_bitmap.cxx') 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 - +/** 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());} -- cgit v1.2.3