diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2008-09-20 22:46:24 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2008-09-20 22:46:24 +0000 |
| commit | b804e1f3ab455a86dcd345710ee5dcc1c2eab606 (patch) | |
| tree | 22582970a896ec8b35c0e93e5eecdf7d2686bf8b /src | |
| parent | fd407c7775dbfd8efd15afaaa89586cf2e8689e9 (diff) | |
Fixed some typos and links and added a section about document structure
and some more to development.dox.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Menu_.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_Text_Buffer.cxx | 10 | ||||
| -rw-r--r-- | src/Fl_Widget.cxx | 4 |
3 files changed, 11 insertions, 5 deletions
diff --git a/src/Fl_Menu_.cxx b/src/Fl_Menu_.cxx index 3701ea1d0..851cf001b 100644 --- a/src/Fl_Menu_.cxx +++ b/src/Fl_Menu_.cxx @@ -226,7 +226,7 @@ void Fl_Menu_::copy(const Fl_Menu_Item* m, void* ud) { memcpy(newMenu, m, n*sizeof(Fl_Menu_Item)); menu(newMenu); alloc = 1; // make destructor free array, but not strings - // for convienence, provide way to change all the user data pointers: + // for convenience, provide way to change all the user data pointers: if (ud) for (; n--;) { if (newMenu->callback_) newMenu->user_data_ = ud; newMenu++; diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx index 7bb18a948..d78860055 100644 --- a/src/Fl_Text_Buffer.cxx +++ b/src/Fl_Text_Buffer.cxx @@ -213,7 +213,13 @@ void Fl_Text_Buffer::text(const char *t) { /** Return a copy of the text between "start" and "end" character positions from text buffer "buf". Positions start at 0, and the range does not - include the character pointed to by "end" + include the character pointed to by "end". + + - - - + + Return a copy of the text between \a start and \a end character positions + from text buffer \a buf. Positions start at 0, and the range does not + include the character pointed to by \a end. When you are done with the text, free it using the free() function. */ char * Fl_Text_Buffer::text_range(int start, int end) { @@ -1327,7 +1333,7 @@ int Fl_Text_Buffer::findchars_backward(int startPos, const char *searchChars, The primary routine for integrating new text into a text buffer with substitution of another character for ascii nuls. This substitutes null characters in the string in preparation for being copied or replaced - into the buffer, and if neccessary, adjusts the buffer as well, in the + into the buffer, and if necessary, adjusts the buffer as well, in the event that the string contains the character it is currently using for substitution. Returns 0, if substitution is no longer possible because all non-printable characters are already in use. diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index e03a44312..24f3a02ff 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -37,7 +37,7 @@ //////////////////////////////////////////////////////////////// // for compatibility with Forms, all widgets without callbacks are // inserted into a "queue" when they are activated, and the forms -// compatibility interaction functions (fl_do_events, etc) will +// compatibility interaction functions (fl_do_events, etc.) will // read one widget at a time from this queue and return it: const int QUEUE_SIZE = 20; @@ -136,7 +136,7 @@ extern void fl_throw_focus(Fl_Widget*); // in Fl_x.cxx /** Destroys the widget, taking care of throwing focus before if any. Destruction does not remove from any parent group! And groups when - destroyed destroy all their children. This is convienent and fast. + destroyed destroy all their children. This is convenient and fast. However, it is only legal to destroy a "root" such as an Fl_Window, and automatic destructors may be called. */ |
