Gtk.CellView
Class
GtkCellView
deprecated: 4.10
Description [src]
final class Gtk.CellView : Gtk.Widget
implements Gtk.Accessible, Gtk.Buildable, Gtk.CellLayout, Gtk.ConstraintTarget, Gtk.Orientable {
/* No available fields */
}
A widget displaying a single row of a GtkTreeModel
A GtkCellView
displays a single row of a GtkTreeModel
using a GtkCellArea
and GtkCellAreaContext
. A GtkCellAreaContext
can be provided to the
GtkCellView
at construction time in order to keep the cellview in context
of a group of cell views, this ensures that the renderers displayed will
be properly aligned with each other (like the aligned cells in the menus
of GtkComboBox
).
GtkCellView
is GtkOrientable
in order to decide in which orientation
the underlying GtkCellAreaContext
should be allocated. Taking the GtkComboBox
menu as an example, cellviews should be oriented horizontally if the menus are
listed top-to-bottom and thus all share the same width but may have separate
individual heights (left-to-right menus should be allocated vertically since
they all share the same height but may have variable widths).
CSS nodes
GtkCellView has a single CSS node with name cellview.
Deprecated since: 4.10
List views use widgets to display their contents.
You can use GtkBox
instead.
Constructors
gtk_cell_view_new_with_context
Creates a new GtkCellView
widget with a specific GtkCellArea
to layout cells and a specific GtkCellAreaContext
.
deprecated: 4.10
gtk_cell_view_new_with_text
Creates a new GtkCellView
widget, adds a GtkCellRendererText
to it, and makes it show text
.
deprecated: 4.10
Instance methods
gtk_cell_view_get_displayed_row
Returns a GtkTreePath
referring to the currently
displayed row. If no row is currently displayed,
NULL
is returned.
deprecated: 4.10
gtk_cell_view_set_displayed_row
Sets the row of the model that is currently displayed
by the GtkCellView
. If the path is unset, then the
contents of the cellview “stick” at their last value;
this is not normally a desired result, but may be
a needed intermediate state if say, the model for
the GtkCellView
becomes temporarily empty.
deprecated: 4.10
gtk_cell_view_set_draw_sensitive
Sets whether cell_view
should draw all of its
cells in a sensitive state, this is used by GtkComboBox
menus
to ensure that rows with insensitive cells that contain
children appear sensitive in the parent menu item.
deprecated: 4.10
gtk_cell_view_set_model
Sets the model for cell_view
. If cell_view
already has a model
set, it will remove it before setting the new model. If model
is
NULL
, then it will unset the old model.
deprecated: 4.10
Methods inherited from GObject (43)
Please see GObject for a full list of methods.
Methods inherited from GtkCellLayout (10)
gtk_cell_layout_add_attribute
Adds an attribute mapping to the list in cell_layout
.
deprecated: 4.10
gtk_cell_layout_clear
Unsets all the mappings on all renderers on cell_layout
and
removes all renderers from cell_layout
.
deprecated: 4.10
gtk_cell_layout_clear_attributes
Clears all existing attributes previously set with gtk_cell_layout_set_attributes().
deprecated: 4.10
gtk_cell_layout_get_area
Returns the underlying GtkCellArea
which might be cell_layout
if called on a GtkCellArea
or might be NULL
if no GtkCellArea
is used by cell_layout
.
deprecated: 4.10
gtk_cell_layout_get_cells
Returns the cell renderers which have been added to cell_layout
.
deprecated: 4.10
gtk_cell_layout_pack_end
Adds the cell
to the end of cell_layout
. If expand
is FALSE
, then the
cell
is allocated no more space than it needs. Any unused space is
divided evenly between cells for which expand
is TRUE
.
deprecated: 4.10
gtk_cell_layout_pack_start
Packs the cell
into the beginning of cell_layout
. If expand
is FALSE
,
then the cell
is allocated no more space than it needs. Any unused space
is divided evenly between cells for which expand
is TRUE
.
deprecated: 4.10
gtk_cell_layout_reorder
Re-inserts cell
at position
.
deprecated: 4.10
gtk_cell_layout_set_attributes
Sets the attributes in the parameter list as the attributes
of cell_layout
.
deprecated: 4.10
gtk_cell_layout_set_cell_data_func
Sets the GtkCellLayout
DataFunc to use for cell_layout
.
deprecated: 4.10
Properties
Gtk.CellView:draw-sensitive
Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive).
Gtk.CellView:fit-model
Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn’t change when different items are selected).