Package org.gnome.gdk
Class DmabufTextureBuilder.Builder<B extends DmabufTextureBuilder.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theDmabufTextureBuilder
object.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.GLTextureBuilder:update-texture
.setUpdateTexture
(Texture updateTexture) The textureGdk.DmabufTextureBuilder:update-region
is an update for.setWidth
(int width) The width of the texture.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theDmabufTextureBuilder
object. 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:
build
in classGObject.Builder<B extends DmabufTextureBuilder.Builder<B>>
- Returns:
- a new instance of
DmabufTextureBuilder
with the properties that were set in the Builder object.
-
setColorState
The color state of the texture.- Parameters:
colorState
- the value for thecolor-state
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDisplay
-
setFourcc
The format of the texture, as a fourcc value.- Parameters:
fourcc
- the value for thefourcc
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setHeight
The height of the texture.- Parameters:
height
- the value for theheight
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setModifier
The modifier.- Parameters:
modifier
- the value for themodifier
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
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-planes
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPremultiplied
Whether the alpha channel is premultiplied into the others.Only relevant if the format has alpha.
- Parameters:
premultiplied
- the value for thepremultiplied
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setUpdateRegion
The update region forGdk.GLTextureBuilder:update-texture
.- Parameters:
updateRegion
- the value for theupdate-region
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setUpdateTexture
-
setWidth
The width of the texture.- Parameters:
width
- the value for thewidth
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-