diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-01 12:26:54 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-01 12:26:54 +0100 |
| commit | 914ee02c5f60c81e4781b94a11f8f0e974a8178e (patch) | |
| tree | da334479459e4b4c373d42a1c772e8339f9ee436 | |
| parent | 994f5d058b721005bba3c2b5baae7aa0486c7f44 (diff) | |
Fix typos in documentation
| -rw-r--r-- | documentation/src/drawing.dox | 7 | ||||
| -rw-r--r-- | src/Fl_Image.cxx | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/documentation/src/drawing.dox b/documentation/src/drawing.dox index 08877c631..bf7c03717 100644 --- a/documentation/src/drawing.dox +++ b/documentation/src/drawing.dox @@ -1089,12 +1089,15 @@ FLTK also provides several image classes based on the three standard image types for common file formats: \li Fl_GIF_Image +\li Fl_Anim_GIF_Image \li Fl_JPEG_Image \li Fl_PNG_Image \li Fl_PNM_Image \li Fl_XBM_Image \li Fl_XPM_Image \li Fl_SVG_Image +\li Fl_BMP_Image +\li Fl_ICO_Image Each of these image classes loads a named file of the corresponding format. The Fl_Shared_Image class @@ -1105,8 +1108,8 @@ Finally, FLTK provides a special image class called Fl_Tiled_Image to tile another image object in the specified area. This class can be used to tile a background image in a Fl_Group widget, for example. -virtual void Fl_Image::copy() <br> -virtual Fl_Image* Fl_Image::copy(int w, int h) +virtual Fl_Image* Fl_Image::copy() <br> +virtual Fl_Image* Fl_Image::copy(int W, int H) const \par The \p copy() method creates a copy of the image. The second form diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index 2b86c3ab8..ec8606cb8 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -93,15 +93,15 @@ void Fl_Image::draw_empty(int X, int Y) { - w() == data_w() == \p W - h() == data_h() == \p H - Note: the returned image can be safely cast to the same image type as that + \param[in] W,H Requested width and height of the new image + + \note The returned image can be safely cast to the same image type as that of the source image provided this type is one of Fl_RGB_Image, Fl_SVG_Image, Fl_Pixmap, Fl_Bitmap, Fl_Tiled_Image, Fl_Anim_GIF_Image and Fl_Shared_Image. Returned objects copied from images of other, derived, image classes belong to the parent class appearing in this list. For example, the copy of an Fl_GIF_Image is an object of class Fl_Pixmap. - \param[in] W,H Requested width and height of the new image - \note Since FLTK 1.4.0 this method is 'const'. If you derive your own class from Fl_Image or any subclass your overridden methods of 'Fl_Image::copy() const' and 'Fl_Image::copy(int, int) const' \b must also be 'const' for inheritage |
