Package org.gnome.gdk
Class MemoryTextureBuilder.Builder<B extends MemoryTextureBuilder.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.MemoryTextureBuilder.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
MemoryTextureBuilder
public static class MemoryTextureBuilder.Builder<B extends MemoryTextureBuilder.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 theMemoryTextureBuilderobject.setBytes(byte[] bytes) The bytes holding the data.setColorState(ColorState colorState) The colorstate describing the data.setFormat(MemoryFormat format) The format of the data.setHeight(int height) The height of the texture.setStride(long stride) The rowstride of the texture.setUpdateRegion(org.freedesktop.cairo.Region updateRegion) The update region forGdk.MemoryTextureBuilder:update-texture.setUpdateTexture(Texture updateTexture) The textureGdk.MemoryTextureBuilder: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 theMemoryTextureBuilderobject. 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 toMemoryTextureBuilder.- Overrides:
buildin classGObject.Builder<B extends MemoryTextureBuilder.Builder<B>>- Returns:
- a new instance of
MemoryTextureBuilderwith the properties that were set in the Builder object.
-
setBytes
The bytes holding the data.- Parameters:
bytes- the value for thebytesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setColorState
The colorstate describing the data.- Parameters:
colorState- the value for thecolor-stateproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setFormat
The format of the data.- Parameters:
format- the value for theformatproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setHeight
The height of the texture.- Parameters:
height- the value for theheightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setStride
The rowstride of the texture.The rowstride is the number of bytes between the first pixel in a row of image data, and the first pixel in the next row.
- Parameters:
stride- the value for thestrideproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setUpdateRegion
The update region forGdk.MemoryTextureBuilder:update-texture.- Parameters:
updateRegion- the value for theupdate-regionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setUpdateTexture
-
setWidth
The width of the texture.- Parameters:
width- the value for thewidthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-