CellRendererPixbuf


Object Hierarchy:

Gtk.CellRendererPixbuf Gtk.CellRendererPixbuf Gtk.CellRendererPixbuf Gtk.CellRenderer Gtk.CellRenderer Gtk.CellRenderer->Gtk.CellRendererPixbuf GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.CellRenderer GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned

Description:

[ CCode ( type_id = "gtk_cell_renderer_pixbuf_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "4.10" ) ]
public sealed class CellRendererPixbuf : CellRenderer

Warning: CellRendererPixbuf is deprecated since 4.10.

Renders a pixbuf in a cell

Note:

List views use widgets to display their contents. You should use [class@Gtk.Image] for icons, and [class@Gtk.Picture] for images

A `GtkCellRendererPixbuf` can be used to render an image in a cell. It allows to render either a given `GdkPixbuf` (set via the `GtkCellRendererPixbuf:pixbuf` property) or a named icon (set via the `GtkCellRendererPixbuf:icon-name` property).

To support the tree view, `GtkCellRendererPixbuf` also supports rendering two alternative pixbufs, when the `GtkCellRenderer:is-expander` property is true. If the `GtkCellRenderer:is-expanded property` is true and the `GtkCellRendererPixbuf:pixbuf-expander-open` property is set to a pixbuf, it renders that pixbuf, if the `GtkCellRenderer:is-expanded` property is false and the `GtkCellRendererPixbuf:pixbuf-expander-closed` property is set to a pixbuf, it renders that one.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Inherited Members: