![]() |
![]() |
A check box indicating the state of the boolean value is displayed at the left side of the Gtk::MenuItem. Activating the Gtk::MenuItem toggles the value.
Public Member Functions | |
CheckMenuItem (const Glib::ustring& label, bool mnemonic=false) | |
CheckMenuItem () | |
bool | get_active () const |
Returns whether the check menu item is active. | |
bool | get_draw_as_radio () const |
Returns whether check_menu_item looks like a Gtk::RadioMenuItem. | |
bool | get_inconsistent () const |
Retrieves the value set by set_inconsistent(). | |
const GtkCheckMenuItem* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkCheckMenuItem* | gobj () |
Provides access to the underlying C GtkObject. | |
void | set_active (bool state=true) |
void | set_draw_as_radio (bool draw_as_radio=true) |
Sets whether check_menu_item is drawn like a Gtk::RadioMenuItem. | |
void | set_inconsistent (bool setting=true) |
If the user has selected a range of elements (such as some text or spreadsheet cells) that are affected by a boolean setting, and the current values in that range are inconsistent, you may want to display the check in an "in between" state. | |
Glib::SignalProxy0<void> | signal_toggled () |
void | toggled () |
virtual | ~CheckMenuItem () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::CheckMenuItem* | wrap (GtkCheckMenuItem* object, bool take_copy=false) |
|
|
|
|
|
|
|
Returns whether the check menu item is active. See set_active().
|
|
Returns whether check_menu_item looks like a Gtk::RadioMenuItem.
|
|
Retrieves the value set by set_inconsistent().
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::MenuItem. Reimplemented in Gtk::RadioMenuItem. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::MenuItem. Reimplemented in Gtk::RadioMenuItem. |
|
|
|
Sets whether check_menu_item is drawn like a Gtk::RadioMenuItem.
|
|
If the user has selected a range of elements (such as some text or spreadsheet cells) that are affected by a boolean setting, and the current values in that range are inconsistent, you may want to display the check in an "in between" state. This function turns on "in between" display. Normally you would turn off the inconsistent state again if the user explicitly selects a setting. This has to be done manually, set_inconsistent() only affects visual appearance, it doesn't affect the semantics of the widget.
|
|
|
|
|
|
|