diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-03-07 18:23:53 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-03-07 18:28:32 +0100 |
| commit | 53b40f4138e70e443cbaf706cca98786208014ec (patch) | |
| tree | 30fd4c3450280bca1d2ef0b9ccad0a89b617edb9 /FL/Fl_Menu_Button.H | |
| parent | fbf7a347ec6440c9ad42ed5e65e98250f603f638 (diff) | |
Improve documentation on Fl_Menu_Item's and related methods (#332)
See discussion on GitHub Issue #332.
Summary: don't change FLTK code but document what to do and not to do.
Diffstat (limited to 'FL/Fl_Menu_Button.H')
| -rw-r--r-- | FL/Fl_Menu_Button.H | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/FL/Fl_Menu_Button.H b/FL/Fl_Menu_Button.H index b592dbb19..947f849bb 100644 --- a/FL/Fl_Menu_Button.H +++ b/FL/Fl_Menu_Button.H @@ -1,7 +1,7 @@ // // Menu button header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2022 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -44,14 +44,14 @@ When the user clicks a menu item, value() is set to that item and then: - - The item's callback is done if one has been set; the - Fl_Menu_Button is passed as the Fl_Widget* argument, - along with any userdata configured for the callback. + - The item's callback is done if one has been set; the + Fl_Menu_Button is passed as the Fl_Widget* argument, + along with any userdata configured for the callback. - - If the item does not have a callback, the Fl_Menu_Button's callback - is done instead, along with any userdata configured for it. - The callback can determine which item was picked using - value(), mvalue(), item_pathname(), etc. + - If the item does not have a callback, the Fl_Menu_Button's callback + is done instead, along with any userdata configured for it. + The callback can determine which item was picked using + value(), mvalue(), item_pathname(), etc. */ class FL_EXPORT Fl_Menu_Button : public Fl_Menu_ { protected: |
