![]() |
![]() |
CellRendererCombo renders text in a cell like CellRendererText, from which it is derived. But while CellRendererText offers a simple entry to edit the 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.
Public Member Functions | |
virtual Glib::PropertyProxy_Base | _property_renderable () |
Returns the property that this CellRenderer renders. | |
CellRendererCombo () | |
const GtkCellRendererCombo* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkCellRendererCombo* | gobj () |
Provides access to the underlying C GtkObject. | |
Glib::PropertyProxy_ReadOnly< bool > | property_has_entry () const |
If FALSE. | |
Glib::PropertyProxy<bool> | property_has_entry () |
If FALSE. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gtk::TreeModel >> | property_model () const |
The model containing the possible values for the combo box. | |
Glib::PropertyProxy< Glib::RefPtr< Gtk::TreeModel > > | property_model () |
The model containing the possible values for the combo box. | |
Glib::PropertyProxy_ReadOnly< int > | property_text_column () const |
A column in the data source model to get the strings from. | |
Glib::PropertyProxy<int> | property_text_column () |
A column in the data source model to get the strings from. | |
virtual | ~CellRendererCombo () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::CellRendererCombo* | wrap (GtkCellRendererCombo* object, bool take_copy=false) |
|
|
|
|
|
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::CellRendererText. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::CellRendererText. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::CellRendererText. |
|
If FALSE. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
If FALSE. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The model containing the possible values for the combo box. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The model containing the possible values for the combo box. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
A column in the data source model to get the strings from. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
A column in the data source model to get the strings from. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|