summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2014-09-06 19:03:43 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2014-09-06 19:03:43 +0000
commit6928a416e4c543703f9980fb070a254d91b01701 (patch)
tree1419eec2479b09e6b1cbef352dd77761d35976f5
parent031a30a4b5d4d6b9ff8caee618e515ba8766c4af (diff)
Enhance documentation of Fl_Menu_Item::value().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Menu_Item.H8
1 files changed, 7 insertions, 1 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H
index 1276ca651..592ad6c6d 100644
--- a/FL/Fl_Menu_Item.H
+++ b/FL/Fl_Menu_Item.H
@@ -305,7 +305,13 @@ struct FL_EXPORT Fl_Menu_Item {
radio() false, or by an item with FL_MENU_DIVIDER turned on.
*/
int radio() const {return flags&FL_MENU_RADIO;}
- /** Returns the current value of the check or radio item. */
+ /** Returns the current value of the check or radio item.
+ This is zero (0) if the menu item is not checked and
+ non-zero otherwise. You should not rely on a particular value,
+ only zero or non-zero.
+ \note The returned value for a checked menu item as of FLTK 1.3.2
+ is FL_MENU_VALUE (4), but may be 1 in a future version.
+ */
int value() const {return flags&FL_MENU_VALUE;}
/**
Turns the check or radio item "on" for the menu item. Note that this