Basics
Guides
API Reference
Basics
Guides
API Reference
[23:7] extends: object
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.
CellRendererPixbuf ()
Creates a new
GtkCellRendererPixbuf. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set()). Also, withGtkTreeViewColumn, you can bind a property to a value in aGtkTreeModel. For example, you can bind the “pixbuf” property on the cell renderer to a pixbuf value in the model, thus rendering a different image in each row of theGtkTreeView.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asCellRenderer ()
Wraps this handle as
CellRenderer.
A CellRenderer object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setGicon (object Value)
The GIcon representing the icon to display. If the icon theme is changed, the image will be updated automatically.
Value is the new property value.None.setIconname (string Value)
The name of the themed icon to display. This property only has an effect if not overridden by the "pixbuf" property.
Value is the new property value.None.setIconsize (string Value)
The
GtkIconSizevalue that specifies the size of the rendered icon.
Value is the new property value.None.setPixbuf (object Value)
Writes the
pixbufproperty.
Value is the new property value.None.setPixbufexpanderclosed (object Value)
Writes the
pixbuf-expander-closedproperty.
Value is the new property value.None.setPixbufexpanderopen (object Value)
Writes the
pixbuf-expander-openproperty.
Value is the new property value.None.setTexture (object Value)
Writes the
textureproperty.
Value is the new property value.None.[228:14] static extends: object
Generated metadata helpers for CellRendererPixbuf class surfaces.
properties ()
Returns property metadata for
CellRendererPixbuf.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.