summaryrefslogtreecommitdiff
path: root/src/Fl_Menu_add.cxx
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-09-15 11:10:51 +0000
committerFabien Costantini <fabien@onepost.net>2008-09-15 11:10:51 +0000
commit8701883e54d4e7e842d4cb27c17019c03cd33f55 (patch)
treeef86259413498fce96df97ea1decedc7e30515a6 /src/Fl_Menu_add.cxx
parentb9ca1333769f87c029430a9d14a7a9937d400f93 (diff)
Doxygen documentation WP9 Done.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Menu_add.cxx')
-rw-r--r--src/Fl_Menu_add.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Fl_Menu_add.cxx b/src/Fl_Menu_add.cxx
index 7bc766948..1edb61394 100644
--- a/src/Fl_Menu_add.cxx
+++ b/src/Fl_Menu_add.cxx
@@ -175,6 +175,7 @@ int Fl_Menu_Item::add(
if (array == local_array) local_array_size = msize;
return m-array;
}
+
/**
Adds a new menu item, with a title string, shortcut int (or string),
callback, argument to the callback, and flags.
@@ -227,16 +228,7 @@ int Fl_Menu_Item::add(
<P>No items must be added to a menu during a callback to the same menu.</P>
- <h4>int Fl_Menu_::add(const char *)</H4>
-
- <P>The passed string is split at any '|' characters and then
- add(s,0,0,0,0) is done with each section. This is
- often useful if you are just using the value, and is compatible
- with Forms and other GL programs. The section strings use the
- same special characters as described for the long version of add()</p>
-
- <P>No items must be added to a menu during a callback to the same menu.
-*/
+ */
int Fl_Menu_::add(const char *t, int s, Fl_Callback *c,void *v,int f) {
// make this widget own the local array:
if (this != fl_menu_array_owner) {
@@ -283,6 +275,14 @@ int Fl_Menu_::add(const char *t, int s, Fl_Callback *c,void *v,int f) {
This is a Forms (and SGI GL library) compatible add function, it
adds many menu items, with '|' seperating the menu items, and tab
separating the menu item names from an optional shortcut string.
+
+ The passed string is split at any '|' characters and then
+ add(s,0,0,0,0) is done with each section. This is
+ often useful if you are just using the value, and is compatible
+ with Forms and other GL programs. The section strings use the
+ same special characters as described for the long version of add()</p>
+
+ <P>No items must be added to a menu during a callback to the same menu.
*/
int Fl_Menu_::add(const char *str) {
char buf[1024];