Class DmabufTextureBuilder.Builder<B extends DmabufTextureBuilder.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.DmabufTextureBuilder.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
DmabufTextureBuilder

public static class DmabufTextureBuilder.Builder<B extends DmabufTextureBuilder.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
4.14
  • Constructor Details

    • Builder

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

    • build

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

      public B setColorState(ColorState colorState)
      The color state of the texture.
      Parameters:
      colorState - the value for the color-state property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.16
    • setDisplay

      public B setDisplay(Display display)
      The display that this texture will be used on.
      Parameters:
      display - the value for the display property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setFourcc

      public B setFourcc(int fourcc)
      The format of the texture, as a fourcc value.
      Parameters:
      fourcc - the value for the fourcc property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setHeight

      public B setHeight(int height)
      The height of the texture.
      Parameters:
      height - the value for the height property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setModifier

      public B setModifier(long modifier)
      The modifier.
      Parameters:
      modifier - the value for the modifier property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setNPlanes

      public B setNPlanes(int nPlanes)

      The number of planes of the texture.

      Note that you can set properties for other planes, but they will be ignored when constructing the texture.

      Parameters:
      nPlanes - the value for the n-planes property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setPremultiplied

      public B setPremultiplied(boolean premultiplied)

      Whether the alpha channel is premultiplied into the others.

      Only relevant if the format has alpha.

      Parameters:
      premultiplied - the value for the premultiplied property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setUpdateRegion

      public B setUpdateRegion(org.freedesktop.cairo.Region updateRegion)
      The update region for Gdk.DmabufTextureBuilder:update-texture.
      Parameters:
      updateRegion - the value for the update-region property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setUpdateTexture

      public B setUpdateTexture(Texture updateTexture)
      The texture Gdk.DmabufTextureBuilder:update-region is an update for.
      Parameters:
      updateTexture - the value for the update-texture property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setWidth

      public B setWidth(int width)
      The width of the texture.
      Parameters:
      width - the value for the width property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14