Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::CellRendererToggle Class Reference

A GtkCellRendererToggle C++ wrapper class. More...

#include <xfc/gtk/cellrenderertoggle.hh>

Inheritance diagram for Xfc::Gtk::CellRendererToggle:

Xfc::Gtk::CellRenderer Xfc::Gtk::Object Xfc::G::Object Xfc::G::TypeInstance Xfc::Trackable List of all members.

Property Prototypes

Signal Prototypes

Public Member Functions

Accessors
Methods
Property Proxies
Signal Proxies

Detailed Description

A GtkCellRendererToggle C++ wrapper class.


Constructor & Destructor Documentation

Xfc::Gtk::CellRendererToggle::CellRendererToggle ( GtkCellRendererToggle *  cell,
bool  owns_reference = false 
) [explicit, protected]

Construct a new CellRendererToggle from an existing GtkCellRendererToggle.

Parameters:
cell A pointer to a GtkCellRendererToggle.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The cell can be a newly created GtkCellRendererToggle or an existing GtkCellRendererToggle. (see G::Object::Object).

Xfc::Gtk::CellRendererToggle::CellRendererToggle (  ) 

Construct a new CellRendererToggle.

Adjust rendering parameters using object properties. Also, with TreeViewColumn, you can bind a property to a value in a TreeModel. For example, you can bind the "active" property on the cell renderer to a bool value in the model, thus causing the check button to reflect the state of the model.

Xfc::Gtk::CellRendererToggle::CellRendererToggle ( GtkCellRendererToggle *  cell,
bool  owns_reference = false 
) [explicit, protected]

Construct a new CellRendererToggle from an existing GtkCellRendererToggle.

Parameters:
cell A pointer to a GtkCellRendererToggle.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The cell can be a newly created GtkCellRendererToggle or an existing GtkCellRendererToggle. (see G::Object::Object).

Xfc::Gtk::CellRendererToggle::CellRendererToggle (  ) 

Construct a new CellRendererToggle.

Adjust rendering parameters using object properties. Also, with TreeViewColumn, you can bind a property to a value in a TreeModel. For example, you can bind the "active" property on the cell renderer to a bool value in the model, thus causing the check button to reflect the state of the model.


Member Function Documentation

void Xfc::Gtk::CellRendererToggle::set_active ( bool  setting  ) 

Activates or deactivates a cell renderer.

Parameters:
setting The value to set.

void Xfc::Gtk::CellRendererToggle::set_radio ( bool  radio  ) 

If radio is true, the cell renderer renders a radio toggle; if false it renders a check toggle.

Parameters:
radio true to make the toggle look like a radio button.
This can be set globally for the cell renderer, or changed just before rendering each cell in the model (for TreeView, you set up a per-row setting using TreeViewColumn to associate model columns with cell renderer properties).


Member Data Documentation

const ToggledSignalType Xfc::Gtk::CellRendererToggle::toggled_signal [static, protected]

Toggled signal (see signal_toggled()).

Calls a slot with the signature:

< void function(const String& path);
< // path: A widget-dependent string representation of the event location.
<


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3