Package org.gnome.gdk
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theDmabufTextureBuilderobject.setColorState(ColorState colorState) The color state of the texture.setDisplay(Display display) The display that this texture will be used on.setFourcc(int fourcc) The format of the texture, as a fourcc value.setHeight(int height) The height of the texture.setModifier(long modifier) The modifier.setNPlanes(int nPlanes) The number of planes of the texture.setPremultiplied(boolean premultiplied) Whether the alpha channel is premultiplied into the others.setUpdateRegion(org.freedesktop.cairo.Region updateRegion) The update region forGdk.DmabufTextureBuilder:update-texture.setUpdateTexture(Texture updateTexture) The textureGdk.DmabufTextureBuilder:update-regionis an update for.setWidth(int width) The width of the texture.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theDmabufTextureBuilderobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toDmabufTextureBuilder.- Overrides:
buildin classGObject.Builder<B extends DmabufTextureBuilder.Builder<B>>- Returns:
- a new instance of
DmabufTextureBuilderwith the properties that were set in the Builder object.
-
setColorState
The color state of the texture.- Parameters:
colorState- the value for thecolor-stateproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setDisplay
-
setFourcc
The format of the texture, as a fourcc value.- Parameters:
fourcc- the value for thefourccproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setHeight
The height of the texture.- Parameters:
height- the value for theheightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setModifier
The modifier.- Parameters:
modifier- the value for themodifierproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setNPlanes
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 then-planesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setPremultiplied
Whether the alpha channel is premultiplied into the others.Only relevant if the format has alpha.
- Parameters:
premultiplied- the value for thepremultipliedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setUpdateRegion
The update region forGdk.DmabufTextureBuilder:update-texture.- Parameters:
updateRegion- the value for theupdate-regionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setUpdateTexture
-
setWidth
The width of the texture.- Parameters:
width- the value for thewidthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-