Package: gtk

Class gtk-cell-renderer-pixbuf

Superclasses

gtk-cell-renderer, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

follow-state
The follow-state property of type :boolean (Read / Write)
Specifies whether the rendered pixbuf should be colorized according to the gtk-cell-renderer-state.
Warning: The follow-state property has been deprecated since version 3.16 and should not be used in newly written code. Cell renderers always follow state.
Default value: true
gicon
The gicon property of type g-icon (Read / Write)
Represents the icon to display. If the icon theme is changed, the image will be updated automatically.
icon-name
The icon-name property of type :string (Read / Write)
The name of the themed icon to display. This property only has an effect if not overridden by the stock-id or pixbuf properties.
Default value: nil
pixbuf
The pixbuf property of type gdk-pixbuf (Read / Write)
The pixbuf to render.
pixbuf-expander-closed
The pixbuf-expander-closed property of type gdk-pixbuf (Read / Write)
Pixbuf for closed expander.
pixbuf-expander-open
The pixbuf-expander-open property of type gdk-pixbuf (Read / Write)
Pixbuf for open expander.
stock-detail
The stock-detail property of type :string (Read / Write)
Render detail to pass to the theme engine.
Default value: nil
stock-id
The stock-id property of type :string (Read / Write)
The stock ID of the stock icon to render.
Warning: The stock-id property has been deprecated since version 3.10 and should not be used in newly written code. Use the icon-name property instead.
Default value: nil
stock-size
The stock-size property of type :uint (Read / Write)
The gtk-icon-size value that specifies the size of the rendered icon.
Default value: 1
surface
The surface property of type CairoSurface (Read / Write)
The Cairo surface to render.

Details

A gtk-cell-renderer-pixbuf object can be used to render an image in a cell. It allows to render either a given gdk-pixbuf object, set via the pixbuf property, or a named icon, set via the icon-name property.

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

Slot Access Functions

Inherited Slot Access Functions

See also

*2021-3-13