gtk-0.12.4: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellNone

Graphics.UI.Gtk.ModelView.CellRendererPixbuf

Contents

Description

Renders a pixbuf in a cell

Synopsis

Detail

A CellRendererPixbuf can be used to render an image in a cell. It allows to render either a given Pixbuf (set via the cellPixbuf property) or a stock icon (set via the cellPixbufStockId property).

To support the tree view, CellRendererPixbuf also supports rendering two alternative pixbufs, when the cellIsExpander property is True. If the this property is True and the cellPixbufExpanderOpen property is set to a pixbuf, it renders that pixbuf, if the cellIsExpanded property is False and the cellPixbufExpanderClosed property is set to a pixbuf, it renders that one.

Class Hierarchy

 | GObject
 | +----Object
 | +----CellRenderer
 | +----CellRendererPixbuf

Types

Constructors

cellRendererPixbufNew :: IO CellRendererPixbufSource

Create a new CellRendererPixbuf object.

Attributes

cellPixbuf :: CellRendererPixbufClass self => Attr self PixbufSource

The pixbuf to render.

cellPixbufExpanderOpen :: CellRendererPixbufClass self => Attr self PixbufSource

Pixbuf for open expander.

cellPixbufExpanderClosed :: CellRendererPixbufClass self => Attr self PixbufSource

Pixbuf for closed expander.

cellPixbufStockId :: CellRendererPixbufClass self => Attr self StringSource

The stock ID of the stock icon to render.

Default value: ""

cellPixbufStockSize :: CellRendererPixbufClass self => Attr self IntSource

The IconSize value that specifies the size of the rendered icon.

Default value: 1

cellPixbufStockDetail :: CellRendererPixbufClass self => Attr self StringSource

Render detail to pass to the theme engine.

Default value: ""

cellPixbufIconName :: CellRendererPixbufClass self => Attr self StringSource

The name of the themed icon to display. This property only has an effect if not overridden by cellPixbufStockId or cellPixbuf attributes.

Default value: ""

cellPixbufFollowState :: CellRendererPixbufClass self => Attr self BoolSource

Specifies whether the rendered pixbuf should be colorized according to the CellRendererState.

Default value: False