gi-gtk-3.0.17: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.CellRendererPixbuf

Contents

Description

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

To support the tree view, CellRendererPixbuf also supports rendering two alternative pixbufs, when the CellRenderer:is-expander property is True. If the CellRenderer:is-expanded property is True and the CellRendererPixbuf:pixbuf-expander-open property is set to a pixbuf, it renders that pixbuf, if the CellRenderer:is-expanded property is False and the CellRendererPixbuf:pixbuf-expander-closed property is set to a pixbuf, it renders that one.

Synopsis

Exported types

Methods

new

cellRendererPixbufNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m CellRendererPixbuf

Returns: the new cell renderer

Creates a new CellRendererPixbuf. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set()). Also, with TreeViewColumn, you can bind a property to a value in a TreeModel. 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 the TreeView.

Properties

followState

gicon

iconName

pixbuf

pixbufExpanderClosed

pixbufExpanderOpen

stockDetail

stockId

stockSize

surface