mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
Fixed documentation of Fl_Menu_Item::size()
git-svn-id: file:///fltk/svn/fltk/trunk@346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -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
|
matches the <TT>shortcut()</TT> fields, not the letters in the title
|
||||||
preceeded by '
|
preceeded by '
|
||||||
<H4><A name=Fl_Menu_Item.size>int Fl_Menu_Item::size()</A></H4>
|
<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,
|
Returns the number of Fl_Menu_Item structures that make up this menu,
|
||||||
correctly skipping over submenus. To copy a menu you should copy <TT>
|
correctly counting submenus. This includes the "terminator" item at
|
||||||
size() + 1</TT> structures.
|
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*
|
<H4><A name=Fl_Menu_Item.next>const Fl_Menu_Item*
|
||||||
Fl_Menu_Item::next(int n=1) const
|
Fl_Menu_Item::next(int n=1) const
|
||||||
<BR> Fl_Menu_Item* Fl_Menu_Item::next(int n=1);</A></H4>
|
<BR> Fl_Menu_Item* Fl_Menu_Item::next(int n=1);</A></H4>
|
||||||
|
|||||||
Reference in New Issue
Block a user