summaryrefslogtreecommitdiff
path: root/src/Fl_Menu_global.cxx
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-09-15 00:27:28 +0000
committerFabien Costantini <fabien@onepost.net>2008-09-15 00:27:28 +0000
commitfdcfef214e67b0b1162ef4098ba960efd7049523 (patch)
treeec879deb42fe1fbf3ec5a93cf2d7227cf09ed25e /src/Fl_Menu_global.cxx
parente760e8a6e7335ab0689686b907dcafe94aa168db (diff)
Doxygen documentation WP7 Done. Fl_Menu_Item was a real pain to doxyfy.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Menu_global.cxx')
-rw-r--r--src/Fl_Menu_global.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Fl_Menu_global.cxx b/src/Fl_Menu_global.cxx
index b7cba6faf..ebfb7965e 100644
--- a/src/Fl_Menu_global.cxx
+++ b/src/Fl_Menu_global.cxx
@@ -40,6 +40,16 @@ static int handler(int e) {
return the_widget->handle(e);
}
+/**
+ Make the shortcuts for this menu work no matter what window has the
+ focus when you type it. This is done by using
+ Fl::add_handler(). This Fl_Menu_ widget does not
+ have to be visible (ie the window it is in can be hidden, or it does
+ not have to be put in a window at all).
+ <P>Currently there can be only one global()menu. Setting a new
+ one will replace the old one. There is no way to remove the
+ global() setting (so don't destroy the widget!)
+*/
void Fl_Menu_::global() {
if (!the_widget) Fl::add_handler(handler);
the_widget = this;