diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-09-15 00:27:28 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-09-15 00:27:28 +0000 |
| commit | fdcfef214e67b0b1162ef4098ba960efd7049523 (patch) | |
| tree | ec879deb42fe1fbf3ec5a93cf2d7227cf09ed25e /src/Fl_Menu_Button.cxx | |
| parent | e760e8a6e7335ab0689686b907dcafe94aa168db (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_Button.cxx')
| -rw-r--r-- | src/Fl_Menu_Button.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Fl_Menu_Button.cxx b/src/Fl_Menu_Button.cxx index a3c13a829..5474cbaaf 100644 --- a/src/Fl_Menu_Button.cxx +++ b/src/Fl_Menu_Button.cxx @@ -47,6 +47,13 @@ void Fl_Menu_Button::draw() { fl_line(X+H, Y, X+H/2, Y+H); } +/** + Act exactly as though the user clicked the button or typed the + shortcut key. The menu appears, it waits for the user to pick an item, + and if they pick one it sets value() and does the callback or + sets changed() as described above. The menu item is returned + or NULL if the user dismisses the menu. +*/ const Fl_Menu_Item* Fl_Menu_Button::popup() { const Fl_Menu_Item* m; pressed_menu_button_ = this; @@ -101,6 +108,12 @@ int Fl_Menu_Button::handle(int e) { } } +/** + Creates a new Fl_Menu_Button widget using the given position, + size, and label string. The default boxtype is FL_UP_BOX. + <P>The constructor sets menu() to NULL. See + Fl_Menu_ for the methods to set or change the menu. +*/ Fl_Menu_Button::Fl_Menu_Button(int X,int Y,int W,int H,const char *l) : Fl_Menu_(X,Y,W,H,l) { down_box(FL_NO_BOX); |
