| Class Index | Cross Index | Namespace Index |
A menu item with a check box.
Contained in: Gtk
Derived from:
Gtk::MenuItem
Derived by:
Gtk::RadioMenuItem
#include <gtk--/checkmenuitem.h>
public function member index: |
||
| CheckMenuItem | (); | |
| explicit | CheckMenuItem | (const string& label, gfloat x=0.0, gfloat y=0.5); |
| bool | always_show_toggle | () const; |
| guint | get_active | () const; |
| GtkCheckMenuItem* | gtkobj | (); |
| const GtkCheckMenuItem* | gtkobj | () const; |
| static bool | isA | (Object* object); |
| bool | is_active | () const; |
| void | set_active | (bool state=true); |
| void | set_show_toggle | (bool always); |
| emitable signal void | toggled | (); |
| virtual | ~CheckMenuItem | (); |
protected function member index: |
||
| virtual void | draw_indicator_impl | (GdkRectangle* p0); |
| virtual void | toggled_impl | (); |
A check box indicating the state of the boolean value is displayed at the left
side of the GtkMenuItem. Activating the GtkMenuItem toggles the value.
label: The string to use for the label.
state: Boolean value indicating whether the check box is active.
Normally the check box is shown only when it is active or while the menu item is selected.always: Boolean value indicating whether to always show the check box.