CellRendererPixbuf
⚠️ Deprecated ⚠️
This is deprecated since version 4.10.
List views use widgets to display their contents. You should use class@Gtk.Image for icons, and class@Gtk.Picture for images
Renders a pixbuf in a cell
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.
Skipped during bindings generation
method
gicon
: Property has no getter nor settermethod
icon-name
: Property has no getter nor settermethod
icon-size
: Property has no getter nor settermethod
pixbuf
: Property has no getter nor settermethod
pixbuf-expander-closed
: Property has no getter nor settermethod
pixbuf-expander-open
: Property has no getter nor settermethod
texture
: Property has no getter nor setter
Constructors
Properties
Functions
Emits the "editing-canceled" signal. See onEditingCanceled.
Emits the "editing-started" signal. See onEditingStarted.
This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape.
This signal gets emitted when a cell starts to be edited. The intended use of this signal is to do special setup on @editable, e.g. adding a GtkEntryCompletion
or setting up additional columns in a GtkComboBox
.
This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---