Gtk.CellRendererPixbuf¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w/en |
|||
w |
|||
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.CellRendererPixbuf(**kwargs)¶
- Bases:
- Abstract:
No
Renders a pixbuf in a cell
A
GtkCellRendererPixbuf
can be used to render an image in a cell. It allows to render either a givenGdkPixbuf
(set via theGtkCellRendererPixbuf:pixbuf
property) or a named icon (set via theGtkCellRendererPixbuf:icon-name
property).To support the tree view,
GtkCellRendererPixbuf
also supports rendering two alternative pixbufs, when theGtkCellRenderer:is-expander
property isTrue
. If theGtkCellRenderer:is-expanded property
isTrue
and theGtkCellRendererPixbuf:pixbuf-expander-open
property is set to a pixbuf, it renders that pixbuf, if theGtkCellRenderer:is-expanded
property isFalse
and theGtkCellRendererPixbuf:pixbuf-expander-closed
property is set to a pixbuf, it renders that one.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
- classmethod new()[source]¶
- Returns:
the new cell renderer
- Return type:
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
.Deprecated since version 4.10.
Property Details¶
- Gtk.CellRendererPixbuf.props.gicon¶
-
The
Gio.Icon
representing the icon to display. If the icon theme is changed, the image will be updated automatically.
- Gtk.CellRendererPixbuf.props.icon_name¶
-
The name of the themed icon to display. This property only has an effect if not overridden by the “pixbuf” property.
- Gtk.CellRendererPixbuf.props.icon_size¶
- Name:
icon-size
- Type:
- Default Value:
- Flags:
The
GtkIconSize
value that specifies the size of the rendered icon.
- Gtk.CellRendererPixbuf.props.pixbuf¶
- Name:
pixbuf
- Type:
- Default Value:
- Flags:
- Gtk.CellRendererPixbuf.props.pixbuf_expander_closed¶
- Name:
pixbuf-expander-closed
- Type:
- Default Value:
- Flags:
- Gtk.CellRendererPixbuf.props.pixbuf_expander_open¶
- Name:
pixbuf-expander-open
- Type:
- Default Value:
- Flags:
- Gtk.CellRendererPixbuf.props.texture¶
- Name:
texture
- Type:
- Default Value:
- Flags: