mirror of
https://github.com/fltk/fltk.git
synced 2025-12-09 03:41:33 +08:00
Set Fl_Menu_Item::setonly() to deprecated
for the version without the starting argument.
This commit is contained in:
@@ -438,7 +438,9 @@ struct FL_EXPORT Fl_Menu_Item {
|
|||||||
/** Turns the check or radio item "off" for the menu item. */
|
/** Turns the check or radio item "off" for the menu item. */
|
||||||
void clear() {flags &= ~FL_MENU_VALUE;}
|
void clear() {flags &= ~FL_MENU_VALUE;}
|
||||||
|
|
||||||
void setonly(Fl_Menu_Item const* first = NULL);
|
FL_DEPRECATED("since 1.3 - use setonly(Fl_Menu_Item const* first) instead",
|
||||||
|
void setonly());
|
||||||
|
void setonly(Fl_Menu_Item const* first);
|
||||||
|
|
||||||
/** Gets the visibility of an item. */
|
/** Gets the visibility of an item. */
|
||||||
int visible() const {return !(flags&FL_MENU_INVISIBLE);}
|
int visible() const {return !(flags&FL_MENU_INVISIBLE);}
|
||||||
|
|||||||
@@ -461,6 +461,12 @@ void Fl_Menu_::setonly(Fl_Menu_Item* item) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
\deprecated Please use Fl_Menu_Item::setonly(Fl_Menu_Item const* first) instead.
|
||||||
|
*/
|
||||||
|
void Fl_Menu_Item::setonly() { setonly(nullptr); }
|
||||||
|
|
||||||
|
|
||||||
/** Turns the radio item "on" for the menu item and turns "off" adjacent radio items set.
|
/** Turns the radio item "on" for the menu item and turns "off" adjacent radio items set.
|
||||||
\note This method is dangerous if radio items are first in the menu.
|
\note This method is dangerous if radio items are first in the menu.
|
||||||
Make sure that \p first is set ciorrectly or use Fl_Menu_::setonly(Fl_Menu_Item*) instead.
|
Make sure that \p first is set ciorrectly or use Fl_Menu_::setonly(Fl_Menu_Item*) instead.
|
||||||
|
|||||||
Reference in New Issue
Block a user