![]() |
![]() |
CellLayout is an interface to be implemented by all objects which want to provide a TreeView::Column-like API for packing cells, setting attributes and data funcs.
Public Types | |
typedef sigc::slot< void, const TreeModel::const_iterator& > | SlotCellData |
Public Member Functions | |
void | add_attribute (const Glib::PropertyProxy_Base& property, const TreeModelColumnBase& column) |
void | add_attribute (CellRenderer& cell, const Glib::ustring& attribute, int column) |
Adds an attribute mapping to the list in cell_layout . | |
void | clear () |
Unsets all the mappings on all renderers on cell_layout and removes all renderers from cell_layout . | |
void | clear_attributes (CellRenderer& cell) |
Clears all existing attributes previously set with set_attributes(). | |
const GtkCellLayout* | gobj () const |
Provides access to the underlying C GObject. | |
GtkCellLayout* | gobj () |
Provides access to the underlying C GObject. | |
void | pack_end (CellRenderer& cell, bool expand=true) |
Adds the cell to the end of cell_layout . | |
void | pack_start (CellRenderer& cell, bool expand=true) |
Packs the cell into the beginning of cell_layout . | |
template<class ColumnType> | |
void | pack_start (const TreeModelColumn<ColumnType>& model_column, bool expand=true) |
void | reorder (CellRenderer& cell, int position) |
Re-inserts cell at position . | |
void | set_cell_data_func (CellRenderer& cell, const SlotCellData& slot) |
virtual | ~CellLayout () |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Protected Member Functions | |
virtual void | add_attribute_vfunc (CellRenderer* cell, const Glib::ustring& attribute, int column) |
virtual void | clear_attributes_vfunc (CellRenderer* cell) |
virtual void | clear_vfunc () |
virtual void | pack_end_vfunc (CellRenderer* cell, bool expand) |
virtual void | pack_start_vfunc (CellRenderer* cell, bool expand) |
virtual void | reorder_vfunc (CellRenderer* cell, int position) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::CellLayout> | wrap (GtkCellLayout* object, bool take_copy=false) |
|
|
|
|
|
|
|
Adds an attribute mapping to the list in cell_layout . The column is the column of the model to get a value from, and the attribute is the parameter on cell to be set from the value. So for example if column 2 of the model contains strings, you could have the "text" attribute of a Gtk::CellRendererText get its values from column 2. Since: 2.4
|
|
|
|
|
|
Unsets all the mappings on all renderers on cell_layout and removes all renderers from cell_layout . Since: 2.4 Reimplemented in Gtk::ComboBoxEntryText, and Gtk::ComboBoxText. |
|
Clears all existing attributes previously set with set_attributes(). Since: 2.4
|
|
|
|
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface. Reimplemented in Gtk::CellView, Gtk::ComboBox, and Gtk::ComboBoxEntry. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface. Reimplemented in Gtk::CellView, Gtk::ComboBox, and Gtk::ComboBoxEntry. |
|
Adds the cell to the end of cell_layout .
If expand is Note that reusing the same cell renderer is not supported. Since: 2.4
|
|
|
|
Packs the cell into the beginning of cell_layout .
If expand is Note that reusing the same cell renderer is not supported. Since: 2.4
|
|
|
|
|
|
Re-inserts cell at position . Note that cell has already to be packed into cell_layout for this to function properly. Since: 2.4
|
|
|
|
|
|
|