From 53b40f4138e70e443cbaf706cca98786208014ec Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 7 Mar 2022 18:23:53 +0100 Subject: 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. --- FL/Fl_Menu_Button.H | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'FL/Fl_Menu_Button.H') 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: -- cgit v1.2.3