summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-02-26 07:12:39 +0000
committerBill Spitzak <spitzak@gmail.com>1999-02-26 07:12:39 +0000
commit709366d65c9c4f3bec059e3bb714a21ad6012af9 (patch)
treec3582faeabe5c34f9a037b514aa8136c59e6cb39 /documentation
parentf19b6ee3e4d30e9c6b121625a68b8fd215583f08 (diff)
Fixed documentation of Fl_Menu_Item::size()
git-svn-id: file:///fltk/svn/fltk/trunk@346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Fl_Menu_Item.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/documentation/Fl_Menu_Item.html b/documentation/Fl_Menu_Item.html
index 7d3ca8820..3f1fc10fd 100644
--- a/documentation/Fl_Menu_Item.html
+++ b/documentation/Fl_Menu_Item.html
@@ -285,9 +285,10 @@ does not match any shortcuts then <TT>NULL</TT> is returned. This only
matches the <TT>shortcut()</TT> fields, not the letters in the title
preceeded by '
<H4><A name=Fl_Menu_Item.size>int Fl_Menu_Item::size()</A></H4>
- Return the offset of the <TT>NULL</TT> terminator that ends this menu,
-correctly skipping over submenus. To copy a menu you should copy <TT>
-size() + 1</TT> structures.
+ Returns the number of Fl_Menu_Item structures that make up this menu,
+correctly counting submenus. This includes the "terminator" item at
+the end. So to copy a menu you need to copy
+<tt>size()*sizeof(Fl_Menu_Item)</tt> bytes.
<H4><A name=Fl_Menu_Item.next>const Fl_Menu_Item*
Fl_Menu_Item::next(int n=1) const
<BR> Fl_Menu_Item* Fl_Menu_Item::next(int n=1);</A></H4>