diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-08-26 15:17:28 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-08-26 15:17:28 +0200 |
| commit | 94a75b012f3557687574df6533296c1a4ef51b3e (patch) | |
| tree | 5e2db2271774bda929f2d66739974fa8fbffe0cb /FL | |
| parent | d9d474c59372a8b2b0829c400b5d0584129e3822 (diff) | |
Fixes a bunch of typos in comments.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Enumerations.H | 8 | ||||
| -rw-r--r-- | FL/Fl.H | 2 | ||||
| -rw-r--r-- | FL/Fl_Anim_GIF_Image.H | 6 | ||||
| -rw-r--r-- | FL/Fl_Browser.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Copy_Surface.H | 4 | ||||
| -rw-r--r-- | FL/Fl_GIF_Image.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Gl_Window.H | 8 | ||||
| -rw-r--r-- | FL/Fl_PNG_Image.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Plugin.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Preferences.H | 2 | ||||
| -rw-r--r-- | FL/Fl_Rect.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Roller.H | 4 | ||||
| -rw-r--r-- | FL/Fl_String.H | 6 | ||||
| -rw-r--r-- | FL/Fl_Text_Buffer.H | 8 | ||||
| -rw-r--r-- | FL/fl_draw.H | 4 |
15 files changed, 36 insertions, 36 deletions
diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 914fc6a56..178c561c3 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -415,7 +415,7 @@ enum Fl_Event { // events /**@{*/ /** These constants determine when a callback is performed. - Fl_When is a bit field. Some values are merely shorcuts for common bit + Fl_When is a bit field. Some values are merely shortcuts for common bit combinations. New flags may be added in the future, so it's important to mask the required bit when reading via \p when(). @@ -1059,9 +1059,9 @@ const Fl_Font FL_SCREEN_BOLD = 14; ///< Default monospaced bold scr const Fl_Font FL_ZAPF_DINGBATS = 15; ///< Zapf-dingbats font const Fl_Font FL_FREE_FONT = 16; ///< first one to allocate -const Fl_Font FL_BOLD = 1; ///< add this to helvetica, courier, or times -const Fl_Font FL_ITALIC = 2; ///< add this to helvetica, courier, or times -const Fl_Font FL_BOLD_ITALIC = 3; ///< add this to helvetica, courier, or times +const Fl_Font FL_BOLD = 1; ///< add this to Helvetica, Courier, or Times +const Fl_Font FL_ITALIC = 2; ///< add this to Helvetica, Courier, or Times +const Fl_Font FL_BOLD_ITALIC = 3; ///< add this to Helvetica, Courier, or Times /**@}*/ @@ -1162,7 +1162,7 @@ public: that the normal one is first, followed by bold, italic, and bold italic. - The only argument to this function is somehat obsolete since FLTK and most + The only argument to this function is somewhat obsolete since FLTK and most underlying operating systems move to support Unicode. For completeness, following is the original documentation and a few updates: diff --git a/FL/Fl_Anim_GIF_Image.H b/FL/Fl_Anim_GIF_Image.H index a23ad2a5f..ca1c445ce 100644 --- a/FL/Fl_Anim_GIF_Image.H +++ b/FL/Fl_Anim_GIF_Image.H @@ -1,7 +1,7 @@ // // Fl_Anim_GIF_Image class header for the Fast Light Tool Kit (FLTK). // -// Copyright 2016-2022 by Christian Grabner <wcout@gmx.net>. +// Copyright 2016-2023 by Christian Grabner <wcout@gmx.net>. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -23,7 +23,7 @@ class Fl_Widget; #include <FL/Fl_GIF_Image.H> -// Load and display animater GIF images +// Load and display animated GIF images class FL_EXPORT Fl_Anim_GIF_Image : public Fl_GIF_Image { class FrameInfo; // internal helper class @@ -62,7 +62,7 @@ public: by storing frame data not as canvas-sized images but use the sizes defined in the GIF file. The drawbacks are higher cpu usage during playback and maybe - minor artefacts when resized. + minor artifacts when resized. */ OPTIMIZE_MEMORY = 8, /** diff --git a/FL/Fl_Browser.H b/FL/Fl_Browser.H index 5b86a6599..f1e1009a9 100644 --- a/FL/Fl_Browser.H +++ b/FL/Fl_Browser.H @@ -1,7 +1,7 @@ // // Browser header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2016 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -230,7 +230,7 @@ public: \li <tt>'\@c'</tt> Center the line horizontally \li <tt>'\@r'</tt> Right-justify the text \li <tt>'\@N'</tt> Use fl_inactive_color() to draw the text - \li <tt>'\@B0', '\@B1', ... '\@B255'</tt> Fill the backgound with + \li <tt>'\@B0', '\@B1', ... '\@B255'</tt> Fill the background with fl_color(n) \li <tt>'\@C0', '\@C1', ... '\@C255'</tt> Use fl_color(n) to draw the text \li <tt>'\@F0', '\@F1', ...</tt> Use fl_font(n) to draw the text diff --git a/FL/Fl_Copy_Surface.H b/FL/Fl_Copy_Surface.H index 752179a01..c9e74e259 100644 --- a/FL/Fl_Copy_Surface.H +++ b/FL/Fl_Copy_Surface.H @@ -1,7 +1,7 @@ // // Copy-to-clipboard code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2014 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -94,7 +94,7 @@ protected: int printable_rect(int *w, int *h) FL_OVERRIDE; /** Each platform implements this function its own way. It returns an object implementing all virtual functions - of class Fl_Copy_Surface_Driver for the plaform. + of class Fl_Copy_Surface_Driver for the platform. */ static Fl_Copy_Surface_Driver *newCopySurfaceDriver(int w, int h); }; diff --git a/FL/Fl_GIF_Image.H b/FL/Fl_GIF_Image.H index f1f31724e..e6994e688 100644 --- a/FL/Fl_GIF_Image.H +++ b/FL/Fl_GIF_Image.H @@ -1,7 +1,7 @@ // // GIF image header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -45,7 +45,7 @@ public: protected: - // Proteced constructors needed for animated GIF support through Fl_Anim_GIF_Image. + // Protected constructors needed for animated GIF support through Fl_Anim_GIF_Image. Fl_GIF_Image(const char* filename, bool anim); Fl_GIF_Image(const char* imagename, const unsigned char *data, const size_t length, bool anim); // Protected default constructor needed for Fl_Anim_GIF_Image. diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H index 8889a086b..65c7a5a9d 100644 --- a/FL/Fl_Gl_Window.H +++ b/FL/Fl_Gl_Window.H @@ -1,7 +1,7 @@ // // OpenGL header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2016 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -135,12 +135,12 @@ public: static int can_do(const int *m) {return can_do(0, m);} /** Returns non-zero if the hardware supports the current OpenGL mode. */ int can_do() {return can_do(mode_,alist);} - /** Returns the current OpenGL capabilites of the window. + /** Returns the current OpenGL capabilities of the window. Don't use this if capabilities were set through Fl_Gl_Window::mode(const int *a). */ Fl_Mode mode() const {return (Fl_Mode)mode_;} /** - Set or change the OpenGL capabilites of the window. The value can be + Set or change the OpenGL capabilities of the window. The value can be any of the following OR'd together: - \c FL_RGB - RGB color (not indexed) @@ -180,7 +180,7 @@ public: \version the <tt>FL_OPENGL3</tt> flag appeared in version 1.3.4 */ int mode(int a) {return mode(a,0);} - /** Set the OpenGL capabilites of the window using platform-specific data. + /** Set the OpenGL capabilities of the window using platform-specific data. \param a zero-ending array of platform-specific attributes and attribute values <p><b>Unix/Linux platform</b>: attributes are GLX attributes adequate for the 3rd argument of the <tt>glXChooseVisual()</tt> function (e.g., <tt>GLX_DOUBLEBUFFER</tt>, defined by including <GL/glx.h>). diff --git a/FL/Fl_PNG_Image.H b/FL/Fl_PNG_Image.H index 1b5e32179..41b9de5df 100644 --- a/FL/Fl_PNG_Image.H +++ b/FL/Fl_PNG_Image.H @@ -1,7 +1,7 @@ // // PNG image header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -24,7 +24,7 @@ /** The Fl_PNG_Image class supports loading, caching, and drawing of Portable Network Graphics (PNG) image files. The - class loads colormapped and full-color images and handles color- + class loads color-mapped and full-color images and handles color- and alpha-based transparency. */ class FL_EXPORT Fl_PNG_Image : public Fl_RGB_Image { diff --git a/FL/Fl_Plugin.H b/FL/Fl_Plugin.H index aca8d4b8b..1806f025b 100644 --- a/FL/Fl_Plugin.H +++ b/FL/Fl_Plugin.H @@ -1,7 +1,7 @@ // // A Plugin system for FLTK, implemented in Fl_Preferences.cxx. // -// Copyright 2002-2010 by Matthias Melcher. +// Copyright 2002-2023 by Matthias Melcher. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -30,7 +30,7 @@ linking C++ classes at run-time, or optionally linking modules at compile time without the need to change the main application. - Fl_Plugin_Manager uses static initialisation to create the plugin interface + Fl_Plugin_Manager uses static initialization to create the plugin interface early during startup. Plugins are stored in a temporary database, organized in classes. diff --git a/FL/Fl_Preferences.H b/FL/Fl_Preferences.H index a74be23eb..5f988a344 100644 --- a/FL/Fl_Preferences.H +++ b/FL/Fl_Preferences.H @@ -29,7 +29,7 @@ class Fl_String; \brief Fl_Preferences store user settings between application starts. Fl_Preferences are similar to the Registry on Windows and Preferences on MacOS, - providing a simple method to store customisable user settings between app + providing a simple method to store customizable user settings between app launches, for instance the previous window position or a history of previously used documents. diff --git a/FL/Fl_Rect.H b/FL/Fl_Rect.H index 0de6dfcb2..29e7fd451 100644 --- a/FL/Fl_Rect.H +++ b/FL/Fl_Rect.H @@ -1,7 +1,7 @@ // // Fl_Rect header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -22,7 +22,7 @@ /** Rectangle with standard FLTK coordinates (X, Y, W, H). - This may be used internally, for overloaded widget contructors and other + This may be used internally, for overloaded widget constructors and other overloaded methods like fl_measure(), fl_text_extents(), fl_rect(), fl_rectf(), and maybe more. */ diff --git a/FL/Fl_Roller.H b/FL/Fl_Roller.H index 5775058b8..dc9aa4381 100644 --- a/FL/Fl_Roller.H +++ b/FL/Fl_Roller.H @@ -1,7 +1,7 @@ // // Roller header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -30,7 +30,7 @@ The roller can be controlled by clicking and dragging the mouse, by the corresponding arrow keys when the roller has the keyboard focus, or by the - mousewheels when the mouse pointer is positioned over the roller widget. + mouse wheels when the mouse pointer is positioned over the roller widget. \image html Fl_Roller.png \image latex Fl_Roller.png "Fl_Roller" width=4cm diff --git a/FL/Fl_String.H b/FL/Fl_String.H index f3ae71b1b..e0280f43c 100644 --- a/FL/Fl_String.H +++ b/FL/Fl_String.H @@ -1,7 +1,7 @@ // // Basic Fl_String header for the Fast Light Tool Kit (FLTK). // -// Copyright 2021-2022 by Bill Spitzak and others. +// Copyright 2021-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -34,7 +34,7 @@ a drop-in if we ever decide to allow templates and the std library. Fl_String always maintains a trailing \e nul byte, but can also contain - \e nul bytes insde the string if the constructor + \e nul bytes inside the string if the constructor Fl_String(const char *str, int size) is used. Assignment and copy constructors \b copy the string value such that the @@ -55,7 +55,7 @@ class FL_EXPORT Fl_String { private: /* - FLTK does no small string optimisation. + FLTK does no small string optimization. If the string is empty and capacity is not set, buffer_ will be NULL. */ char *buffer_; diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H index ac0221b5c..fa3916eba 100644 --- a/FL/Fl_Text_Buffer.H +++ b/FL/Fl_Text_Buffer.H @@ -40,7 +40,7 @@ /* "character size" is the size of a UTF-8 character in bytes "character width" is the width of a Unicode character in pixels - "column" was orginally defined as a character offset from the left margin. + "column" was originally defined as a character offset from the left margin. It was identical to the byte offset. In UTF-8, we have neither a byte offset nor truly fixed width fonts (*). Column could be a pixel value multiplied with an average character width (which is a bearable approximation). @@ -192,7 +192,7 @@ typedef void (*Fl_Text_Predelete_Cb)(int pos, int nDeleted, void* cbArg); All text in Fl_Text_Buffer must be encoded in UTF-8. All indices used in the function calls must be aligned to the start of a UTF-8 sequence. All indices and pointers returned will be aligned. All functions that return a single - character will return that in an unsiged int in UCS-4 encoding. + character will return that in an unsigned int in UCS-4 encoding. The Fl_Text_Buffer class is used by the Fl_Text_Display and Fl_Text_Editor to manage complex text data and is based upon the excellent NEdit text @@ -331,7 +331,7 @@ public: int undo(int *cp=0); /** - Check if undo is anabled and if the last action can be undone. + Check if undo is enabled and if the last action can be undone. \see canUndo() */ bool can_undo() const; @@ -342,7 +342,7 @@ public: int redo(int *cp=0); /** - Check if undo is anabled and if the last undo action can be redone. + Check if undo is enabled and if the last undo action can be redone. \see canUndo() */ bool can_redo() const; diff --git a/FL/fl_draw.H b/FL/fl_draw.H index 7f46a80f7..758f8082d 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -40,7 +40,7 @@ FL_EXPORT extern char fl_draw_shortcut; // Colors: /** Set the color for all subsequent drawing operations. - For colormapped displays, a color cell will be allocated out of + For color-mapped displays, a color cell will be allocated out of \p fl_colormap the first time you use a color. If the colormap fills up then a least-squares algorithm is used to find the closest color. If no valid graphical context (fl_gc) is available, @@ -871,7 +871,7 @@ inline void fl_text_extents(const char *t, int n, int &dx, int &dy, int &w, int } // font encoding: -// Note: doxygen comments here to avoid duplication for os-sepecific cases +// Note: doxygen comments here to avoid duplication for os-specific cases /** Convert text from Windows/X11 latin1 character set to local encoding. \param[in] t character string (latin1 encoding) |
