Fix typos in documentation

This commit is contained in:
ManoloFLTK 2023-11-01 12:26:54 +01:00
parent 994f5d058b
commit 914ee02c5f
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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