diff options
| author | engelsman <engelsman> | 2008-10-01 22:02:55 +0000 |
|---|---|---|
| committer | engelsman <engelsman> | 2008-10-01 22:02:55 +0000 |
| commit | 2b7fa0f60e3f733afe3437b1b96cf020b0ce66f9 (patch) | |
| tree | 2a8294ebe7470dc29bf4f4d0488ef3bbd38b5508 /src/forms_pixmap.cxx | |
| parent | 4db42c29968b4610d4ebf89f734f31dac8b9973d (diff) | |
added doxygen comments for undocumented features of Fl_FormsPixmap
Q. Is there a potential memory leak if Pixmap(B) called after set(b) ?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/forms_pixmap.cxx')
| -rw-r--r-- | src/forms_pixmap.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/forms_pixmap.cxx b/src/forms_pixmap.cxx index 4caca6101..9c768499f 100644 --- a/src/forms_pixmap.cxx +++ b/src/forms_pixmap.cxx @@ -27,15 +27,26 @@ #include <FL/forms.H> +/** + Creates a new Fl_FormsPixmap widet using the given box type, position, + size and label string. + \param[in] t box type + \param[in] X, Y, W, H position and size + \param[in] L widget label, default is no label +*/ Fl_FormsPixmap::Fl_FormsPixmap( - Fl_Boxtype t, int X, int Y, int W, int H, const char* l) -: Fl_Widget(X, Y, W, H, l) { + Fl_Boxtype t, int X, int Y, int W, int H, const char* L) +: Fl_Widget(X, Y, W, H, L) { box(t); b = 0; color(FL_BLACK); align(FL_ALIGN_BOTTOM); } +/** + Set/create the internal pixmap using raw data. + \param[in] bits raw data +*/ void Fl_FormsPixmap::set(char*const* bits) { delete b; b = new Fl_Pixmap(bits); |
