CellView


Object Hierarchy:

Gtk.CellView Gtk.CellView Gtk.CellView Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.CellView GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.CellView Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.CellView Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.CellView Gtk.ConstraintTarget->Gtk.Widget Gtk.CellLayout Gtk.CellLayout Gtk.CellLayout->Gtk.CellView Gtk.Orientable Gtk.Orientable Gtk.Orientable->Gtk.CellView

Description:

[ CCode ( type_id = "gtk_cell_view_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "4.10" ) ]
public sealed class CellView : Widget, Accessible, Buildable, CellLayout, ConstraintTarget, Orientable

Warning: CellView is deprecated since 4.10.

A widget displaying a single row of a GtkTreeModel

Note:

List views use widgets to display their contents. You can use [class@Gtk.Box] instead

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.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Gtk.Orientable