Class CellRendererPixbuf.Builder<B extends CellRendererPixbuf.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
CellRendererPixbuf

public static class CellRendererPixbuf.Builder<B extends CellRendererPixbuf.Builder<B>> extends CellRenderer.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public CellRendererPixbuf build()
      Finish building the CellRendererPixbuf object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to CellRendererPixbuf.
      Overrides:
      build in class CellRenderer.Builder<B extends CellRendererPixbuf.Builder<B>>
      Returns:
      a new instance of CellRendererPixbuf with the properties that were set in the Builder object.
    • setGicon

      public B setGicon(Icon gicon)
      The GIcon representing the icon to display. If the icon theme is changed, the image will be updated automatically.
      Parameters:
      gicon - the value for the gicon property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIconName

      public B setIconName(String iconName)
      The name of the themed icon to display. This property only has an effect if not overridden by the "pixbuf" property.
      Parameters:
      iconName - the value for the icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIconSize

      public B setIconSize(IconSize iconSize)
      The GtkIconSize value that specifies the size of the rendered icon.
      Parameters:
      iconSize - the value for the icon-size property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPixbuf

      public B setPixbuf(Pixbuf pixbuf)
    • setPixbufExpanderClosed

      public B setPixbufExpanderClosed(Pixbuf pixbufExpanderClosed)
    • setPixbufExpanderOpen

      public B setPixbufExpanderOpen(Pixbuf pixbufExpanderOpen)
    • setTexture

      public B setTexture(Texture texture)