logo top
Main Page   Widgets   Namespaces   Book  

Gtk::CheckMenuItem Class Reference
[WidgetsMenu classes]

A menu item that maintains the state of a boolean value in addition to a Gtk::MenuItem's usual role in activating application code. More...

Inheritance diagram for Gtk::CheckMenuItem:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~CheckMenuItem ()
GtkCheckMenuItem* gobj ()
 Provides access to the underlying C GtkObject.

const GtkCheckMenuItem* gobj () const
 Provides access to the underlying C GtkObject.

 CheckMenuItem ()
 CheckMenuItem (const Glib::ustring& label, bool mnemonic=false)
void set_active (bool state=true)
bool get_active () const
void toggled ()
void set_inconsistent (bool setting=true)
bool get_inconsistent () const
void set_draw_as_radio (bool draw_as_radio=true)
bool get_draw_as_radio () const
Glib::SignalProxy0<void> signal_toggled ()
Glib::PropertyProxy<bool> property_active ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_inconsistent ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_draw_as_radio ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.


Protected Member Functions

virtual void draw_indicator_vfunc (GdkRectangle* area)
virtual void on_toggled ()

Related Functions

(Note that these are not member functions.)

Gtk::CheckMenuItemwrap (GtkCheckMenuItem* object, bool take_copy=false)

Detailed Description

A menu item that maintains the state of a boolean value in addition to a Gtk::MenuItem's usual role in activating application code.

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.


Constructor & Destructor Documentation

virtual Gtk::CheckMenuItem::~CheckMenuItem (  )  [virtual]
 

Gtk::CheckMenuItem::CheckMenuItem (  ) 
 

Gtk::CheckMenuItem::CheckMenuItem ( const Glib::ustring label,
bool  mnemonic = false
[explicit]
 


Member Function Documentation

virtual void Gtk::CheckMenuItem::draw_indicator_vfunc ( GdkRectangle*  area  )  [protected, virtual]
 

bool Gtk::CheckMenuItem::get_active (  )  const
 

bool Gtk::CheckMenuItem::get_draw_as_radio (  )  const
 

bool Gtk::CheckMenuItem::get_inconsistent (  )  const
 

const GtkCheckMenuItem* Gtk::CheckMenuItem::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::MenuItem.

Reimplemented in Gtk::RadioMenuItem.

GtkCheckMenuItem* Gtk::CheckMenuItem::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::MenuItem.

Reimplemented in Gtk::RadioMenuItem.

virtual void Gtk::CheckMenuItem::on_toggled (  )  [protected, virtual]
 

Glib::PropertyProxy<bool> Gtk::CheckMenuItem::property_active (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::CheckMenuItem::property_draw_as_radio (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::CheckMenuItem::property_inconsistent (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

void Gtk::CheckMenuItem::set_active ( bool  state = true  ) 
 

void Gtk::CheckMenuItem::set_draw_as_radio ( bool  draw_as_radio = true  ) 
 

void Gtk::CheckMenuItem::set_inconsistent ( bool  setting = true  ) 
 

Glib::SignalProxy0<void> Gtk::CheckMenuItem::signal_toggled (  ) 
 

Prototype:
void toggled()

void Gtk::CheckMenuItem::toggled (  ) 
 


Friends And Related Function Documentation

Gtk::CheckMenuItem* wrap ( GtkCheckMenuItem*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001