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


Public Member Functions | Static Protected Attributes
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.

Public Member Functions

Static Protected Attributes

Constructors


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:
cellA pointer to a GtkCellRendererToggle.
owns_referenceSet 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

Activates or deactivates a cell renderer.

Parameters:
settingThe value to set.

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

Parameters:
radiotrue 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

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