diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-02-26 07:14:34 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-02-26 07:14:34 +0000 |
| commit | c15a36003dd3213deeae6163ec53c6344dd28683 (patch) | |
| tree | 4c7a5813e6a6b0dc04313614f3535ba026a80aee /documentation/Fl_Menu_.html | |
| parent | 709366d65c9c4f3bec059e3bb714a21ad6012af9 (diff) | |
Fixed description of Fl_Menu_::size()
git-svn-id: file:///fltk/svn/fltk/trunk@347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/Fl_Menu_.html')
| -rw-r--r-- | documentation/Fl_Menu_.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/documentation/Fl_Menu_.html b/documentation/Fl_Menu_.html index 69f5b1efc..5dcc87b48 100644 --- a/documentation/Fl_Menu_.html +++ b/documentation/Fl_Menu_.html @@ -107,10 +107,12 @@ global()</TT> setting (including destroying the menu). </TT></P> <BR> const char* Fl_Menu_::text(int i) const</A></H4> Returns the title of the last item chosen, or of item <TT>i</TT>. <H4><A name=Fl_Menu_.size>int Fl_Menu_::size() const</A></H4> - This returns <TT>menu()->size()</TT>, which is how many entries are in -the array, not counting the <TT>NULL</TT> ending, but including all -submenus titles and the <TT>NULL</TT>'s that end them. If the menu is <TT> -NULL</TT> this returns zero. + This returns <TT>menu()->size()</TT>, which is +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. If the menu is <TT> +NULL</TT> this returns zero (an empty menu will return 1). <H4><A name=Fl_Menu_.add>int Fl_Menu_::add(const char *,const char *,Fl_Callback *,void *v=0,int f=0) <BR> int Fl_Menu_::add(const char *)</A></H4> |
