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


Xfc::Gtk::CellRendererCombo Class Reference

A GtkCellRendererCombo C++ wrapper class. More...

#include <xfc/gtk/cellrenderercombo.hh>

Inheritance diagram for Xfc::Gtk::CellRendererCombo:

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

Property Prototypes

Public Member Functions

Constructors
Accessors
Property Proxies

Protected Member Functions

Constructors

Detailed Description

A GtkCellRendererCombo C++ wrapper class.

CellRendererCombo is a cell renderer that renders a combobox in a cell. Whereas CellRendererText offers a simple entry to edit text, CellRendererCombo offers a ComboBox or ComboBoxEntry widget to edit the text. The values to display in the combo box are taken from the tree model specified in the model property.

The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its text-column property. Further cell renderers can be added in a handler for the "editing-started" signal.


Constructor & Destructor Documentation

Xfc::Gtk::CellRendererCombo::CellRendererCombo GtkCellRendererCombo *  cell,
bool  owns_reference = false
[explicit, protected]
 

Construct a new CellRendererCombo from an existing GtkCellRendererCombo.

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


Member Function Documentation

const HasEntryPropertyProxy Xfc::Gtk::CellRendererCombo::property_has_entry  ) 
 

If true, the cell renderer will include an entry and allow to enter values other than the ones in the popup list (bool : Read / Write).

The default value is true.

const TextColumnPropertyProxy Xfc::Gtk::CellRendererCombo::property_text_column  ) 
 

Specifies the column in the data source model to get the strings from (int : Read / Write).

Note that this refers to the model specified in the model property, not the model backing the tree view to which this cell renderer is attached.

CellRendererCombo automatically adds a text cell renderer for this column to its combo box. The allowed vales are >= -1, the default value is -1.


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