summaryrefslogtreecommitdiff
path: root/src/Fl_Menu.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-02-13 15:38:52 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-03-26 14:21:33 +0100
commit09352ddab0372d92dfbacb562c6bde24bf98d02d (patch)
treec1bb446113ff0f4c181269d73d57d15ef5ac13de /src/Fl_Menu.cxx
parent89449280dc6be1d0d54359d48fc74d6c05f0c0c0 (diff)
Update documentation, fix typos
Diffstat (limited to 'src/Fl_Menu.cxx')
-rw-r--r--src/Fl_Menu.cxx23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index db0bdd893..fa671188d 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -857,20 +857,23 @@ int menuwindow::handle_part1(int e) {
}
/**
- Pulldown() is similar to popup(), but a rectangle is
- provided to position the menu. The menu is made at least W
- wide, and the picked item is centered over the rectangle
- (like Fl_Choice uses). If picked is zero or not
- found, the menu is aligned just below the rectangle (like a pulldown
- menu).
- <P>The title and menubar arguments are used
- internally by the Fl_Menu_Bar widget.
+ Pulldown() is similar to popup(), but a rectangle is provided
+ to position the menu.
+
+ The menu is made at least \p W wide, and the picked item \p initial_item
+ is centered over the rectangle (like Fl_Choice uses).
+
+ If \p initial_item is \p NULL or not found, the menu is aligned just
+ below the rectangle (like a pulldown menu).
+
+ The \p title and \p menubar arguments are used internally by the
+ Fl_Menu_Bar widget.
*/
const Fl_Menu_Item* Fl_Menu_Item::pulldown(
int X, int Y, int W, int H,
const Fl_Menu_Item* initial_item,
const Fl_Menu_* pbutton,
- const Fl_Menu_Item* t,
+ const Fl_Menu_Item* title,
int menubar) const {
Fl_Group::current(0); // fix possible user error...
@@ -888,7 +891,7 @@ const Fl_Menu_Item* Fl_Menu_Item::pulldown(
X += Fl::event_x_root()-Fl::event_x();
Y += Fl::event_y_root()-Fl::event_y();
}
- menuwindow mw(this, X, Y, W, H, initial_item, t, menubar);
+ menuwindow mw(this, X, Y, W, H, initial_item, title, menubar);
Fl::grab(mw);
menustate pp; p = &pp;
pp.p[0] = &mw;