gtk.cell_renderer_pixbuf

Module for [CellRendererPixbuf] class

Types 3

Renders a pixbuf in a cell

A [gtk.cell_renderer_pixbuf.CellRendererPixbuf] can be used to render an image in a cell. It allows to render either a given [gdkpixbuf.pixbuf.Pixbuf] (set via the GtkCellRendererPixbuf:pixbuf property) or a named icon (set via the GtkCellRendererPixbuf:icon-name property).

To support the tree view, [gtk.cell_renderer_pixbuf.CellRendererPixbuf] 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.

Deprecated

List views use widgets to display their contents. You

should use [gtk.image.Image] for icons, and [gtk.picture.Picture] for images

Methods
GType _gType() @property
CellRendererPixbuf self()Returns `this`, for use in `with` statements.
CellRendererPixbufGidBuilder builder()Get builder for [gtk.cellrendererpixbuf.CellRendererPixbuf] Returns: New builder object
gio.icon.Icon gicon() @propertyGet `gicon` property. Returns: The GIcon representing the icon to display. If the icon theme is changed, the image will be updated automatically.
void gicon(gio.icon.Icon propval) @propertySet `gicon` property. Params: propval = The GIcon representing the icon to display. If the icon theme is changed, the image will be updated automatically.
string iconName() @propertyGet `iconName` property. Returns: The name of the themed icon to display. This property only has an effect if not overridden by the "pixbuf" property.
void iconName(string propval) @propertySet `iconName` property. Params: propval = The name of the themed icon to display. This property only has an effect if not overridden by the "pixbuf" property.
gtk.types.IconSize iconSize() @propertyGet `iconSize` property. Returns: The [gtk.types.IconSize] value that specifies the size of the rendered icon.
void iconSize(gtk.types.IconSize propval) @propertySet `iconSize` property. Params: propval = The [gtk.types.IconSize] value that specifies the size of the rendered icon.
void pixbuf(gdkpixbuf.pixbuf.Pixbuf propval) @property
void texture(gdk.texture.Texture propval) @property
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.cellrendererpixbuf.CellRendererPixbuf]. Adjust rendering parameters using object properties. Object properties can be set globally (with [gobject.object.ObjectWrap.set]). Also, w...
Methods
T gicon(gio.icon.Icon propval)Set `gicon` property. Params: propval = The GIcon representing the icon to display. If the icon theme is changed, the image will be updated automatically. Returns: Builder instance for fluent chaining
T iconName(string propval)Set `iconName` property. Params: propval = The name of the themed icon to display. This property only has an effect if not overridden by the "pixbuf" property. Returns: Builder instance for fluent ...
T iconSize(gtk.types.IconSize propval)Set `iconSize` property. Params: propval = The [gtk.types.IconSize] value that specifies the size of the rendered icon. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.cell_renderer_pixbuf.CellRendererPixbuf]