Package: gtk

Class gtk:cell-renderer-pixbuf

Superclasses

gtk:cell-renderer, gobject:initially-unowned, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

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 pixbuf property.
Default value: nil
icon-size
The icon-size property of type gtk:icon-size (Read / Write)
Specifies the icon size of the rendered icon.
Default value: :inherit
pixbuf
The pixbuf property of type gdk-pixbuf:pixbuf (Write)
The pixbuf to render.
pixbuf-expander-closed
The pixbuf-expander-closed property of type gdk-pixbuf:pixbuf (Read / Write)
The pixbuf for the closed expander.
pixbuf-expander-open
The pixbuf-expander-open property of type gdk-pixbuf:pixbuf (Read / Write)
The pixbuf for the open expander.
texture
The texture property of type gdk:texture (Read / Write)
The texture to render.

Details

The gtk:cell-renderer-pixbuf object can be used to render an image in a cell. It allows to render either a given gdk-pixbuf: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.

Warning

The gtk:cell-renderer-pixbuf implementation is deprecated since 4.10. List views use widgets to display their contents. You should use the gtk:image widget for icons, and the gtk:picture widget for images.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-5-16