Gtk.Cell_Renderer_Pixbuf

Entities

Tagged Types

Access Types

Constants

Subprograms

Description

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

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

Follow_State_Property

Follow_State_Property : constant Glib.Properties.Property_Boolean;

Specifies whether the rendered pixbuf should be colorized according to the Gtk.Cell_Renderer.Gtk_Cell_Renderer_State.

G_Icon_Property

G_Icon_Property : constant Glib.Properties.Property_Boxed;

Type: Glib.G_Icon.G_Icon The GIcon representing the icon to display. If the icon theme is changed, the image will be updated automatically.

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Cell_Renderer_Pixbuf

type Gtk_Cell_Renderer_Pixbuf is access all Gtk_Cell_Renderer_Pixbuf_Record'Class;

Gtk_Cell_Renderer_Pixbuf_New

function Gtk_Cell_Renderer_Pixbuf_New return Gtk_Cell_Renderer_Pixbuf

Creates a new Gtk.Cell_Renderer_Pixbuf.Gtk_Cell_Renderer_Pixbuf. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. 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 Gtk.Tree_View.Gtk_Tree_View.

Return Value

Gtk_Cell_Renderer_Pixbuf_Record

type Gtk_Cell_Renderer_Pixbuf_Record is new Gtk_Cell_Renderer_Record with null record;

Gtk_New

procedure Gtk_New (Self : out Gtk_Cell_Renderer_Pixbuf)

Creates a new Gtk.Cell_Renderer_Pixbuf.Gtk_Cell_Renderer_Pixbuf. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. 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 Gtk.Tree_View.Gtk_Tree_View. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Icon_Name_Property

Icon_Name_Property : constant Glib.Properties.Property_String;

The name of the themed icon to display. This property only has an effect if not overridden by "stock_id" or "pixbuf" properties.

Initialize

procedure Initialize
   (Self : not null access Gtk_Cell_Renderer_Pixbuf_Record'Class)

Creates a new Gtk.Cell_Renderer_Pixbuf.Gtk_Cell_Renderer_Pixbuf. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. 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 Gtk.Tree_View.Gtk_Tree_View. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Pixbuf_Expander_Closed_Property

Pixbuf_Expander_Closed_Property : constant Glib.Properties.Property_Object;

Type: Gdk.Pixbuf.Gdk_Pixbuf

Pixbuf_Expander_Open_Property

Pixbuf_Expander_Open_Property : constant Glib.Properties.Property_Object;

Type: Gdk.Pixbuf.Gdk_Pixbuf

Pixbuf_Property

Pixbuf_Property : constant Glib.Properties.Property_Object;

Type: Gdk.Pixbuf.Gdk_Pixbuf

Stock_Detail_Property

Stock_Detail_Property : constant Glib.Properties.Property_String;

Stock_Id_Property

Stock_Id_Property : constant Glib.Properties.Property_String;

Stock_Size_Property

Stock_Size_Property : constant Glib.Properties.Property_Uint;

The Gtk.Enums.Gtk_Icon_Size value that specifies the size of the rendered icon.

Surface_Property

Surface_Property : constant Glib.Properties.Property_Boxed;

Type: Cairo.Cairo_Surface