logo top
Main Page   Widgets   Namespaces   Book  

Gtk::CellRendererToggle Class Reference
[TreeView Classes]

Inheritance diagram for Gtk::CellRendererToggle:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~CellRendererToggle ()
GtkCellRendererToggle* gobj ()
 Provides access to the underlying C GtkObject.

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

 CellRendererToggle ()
bool get_radio () const
 Returns wether we're rendering radio toggles rather than checkboxes.

void set_radio (bool radio=true)
 If radio is true, the cell renderer renders a radio toggle (i.e. a toggle in a group of mutually-exclusive toggles).

bool get_active () const
 Returns whether the cell renderer is active.

void set_active (bool setting=true)
 Activates or deactivates a cell renderer.

Glib::SignalProxy1< void,
const Glib::ustring& > 
signal_toggled ()
Glib::PropertyProxy<bool> property_activatable ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

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_radio ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

virtual Glib::PropertyProxy_Base _property_renderable ()
 Returns the property that this CellRenderer renders.


Protected Member Functions

virtual void on_toggled (const Glib::ustring& path)

Related Functions

(Note that these are not member functions.)

Gtk::CellRendererTogglewrap (GtkCellRendererToggle* object, bool take_copy=false)

Constructor & Destructor Documentation

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

Gtk::CellRendererToggle::CellRendererToggle (  ) 
 


Member Function Documentation

virtual Glib::PropertyProxy_Base Gtk::CellRendererToggle::_property_renderable (  )  [virtual]
 

Returns the property that this CellRenderer renders.

For instance, property_text for CellRendererText, and property_active for CellRendererToggle Needs to be overridden in derived classes.

Reimplemented from Gtk::CellRenderer.

bool Gtk::CellRendererToggle::get_active (  )  const
 

Returns whether the cell renderer is active.

See set_active().

Returns:
true if the cell renderer is active.

bool Gtk::CellRendererToggle::get_radio (  )  const
 

Returns wether we're rendering radio toggles rather than checkboxes.

Returns:
true if we're rendering radio toggles rather than checkboxes.

const GtkCellRendererToggle* Gtk::CellRendererToggle::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::CellRenderer.

GtkCellRendererToggle* Gtk::CellRendererToggle::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::CellRenderer.

virtual void Gtk::CellRendererToggle::on_toggled ( const Glib::ustring path  )  [protected, virtual]
 

Glib::PropertyProxy<bool> Gtk::CellRendererToggle::property_activatable (  ) 
 

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::CellRendererToggle::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::CellRendererToggle::property_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.

void Gtk::CellRendererToggle::set_active ( bool  setting = true  ) 
 

Activates or deactivates a cell renderer.

Parameters:
setting The value to set.

void Gtk::CellRendererToggle::set_radio ( bool  radio = true  ) 
 

If radio is true, the cell renderer renders a radio toggle (i.e. a toggle in a group of mutually-exclusive toggles).

If false, it renders a check toggle (a standalone boolean option). This can be set globally for the cell renderer, or changed just before rendering each cell in the model (for Gtk::TreeView, you set up a per-row setting using Gtk::TreeViewColumn to associate model columns with cell renderer properties).

Parameters:
radio true to make the toggle look like a radio button.

Glib::SignalProxy1<void,const Glib::ustring&> Gtk::CellRendererToggle::signal_toggled (  ) 
 

Prototype:
void toggled(const Glib::ustring& path)


Friends And Related Function Documentation

Gtk::CellRendererToggle* wrap ( GtkCellRendererToggle*  object,
bool  take_copy = false
[related]
 


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