Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CellRendererPixbuf

[23:7] extends: object

Renders a pixbuf in a cell A GtkCellRendererPixbuf can be used to render an image in a cell. It allows to render either a given GdkPixbuf (set via the GtkCellRendererPixbuf:pixbuf property) or a named icon (set via the GtkCellRendererPixbuf:icon-name property). To support the tree view, GtkCellRendererPixbuf also supports rendering two alternative pixbufs, when the GtkCellRenderer:is-expander property is %TRUE. If the GtkCellRenderer:is-expanded property is %TRUE and the GtkCellRendererPixbuf:pixbuf-expander-open property is set to a pixbuf, it renders that pixbuf, if the GtkCellRenderer:is-expanded property is %FALSE and the GtkCellRendererPixbuf:pixbuf-expander-closed property is set to a pixbuf, it renders that one.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CellRendererPixbuf ()

    Creates a new GtkCellRendererPixbuf. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set()). Also, with GtkTreeViewColumn, you can bind a property to a value in a GtkTreeModel. 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 GtkTreeView.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asCellRenderer ()

    Wraps this handle as CellRenderer.

    • @r A CellRenderer object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setGicon (object Value)

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

    • @p Value is the new property value.
    • @r None.
  • setIconname (string Value)

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

    • @p Value is the new property value.
    • @r None.
  • setIconsize (string Value)

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

    • @p Value is the new property value.
    • @r None.
  • setPixbuf (object Value)

    Writes the pixbuf property.

    • @p Value is the new property value.
    • @r None.
  • setPixbufexpanderclosed (object Value)

    Writes the pixbuf-expander-closed property.

    • @p Value is the new property value.
    • @r None.
  • setPixbufexpanderopen (object Value)

    Writes the pixbuf-expander-open property.

    • @p Value is the new property value.
    • @r None.
  • setTexture (object Value)

    Writes the texture property.

    • @p Value is the new property value.
    • @r None.

class: CellRendererPixbufMeta

[228:14] static extends: object

Generated metadata helpers for CellRendererPixbuf class surfaces.

Methods

  • properties ()

    Returns property metadata for CellRendererPixbuf.

    • @r A list.