Package org.gnome.gdk
Class MemoryTextureBuilder.Builder<B extends MemoryTextureBuilder.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theMemoryTextureBuilder
object.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-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 theMemoryTextureBuilder
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 toMemoryTextureBuilder
.- Overrides:
build
in classGObject.Builder<B extends MemoryTextureBuilder.Builder<B>>
- Returns:
- a new instance of
MemoryTextureBuilder
with the properties that were set in the Builder object.
-
setBytes
-
setColorState
The colorstate describing the data.- Parameters:
colorState
- the value for thecolor-state
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFormat
The format of the data.- Parameters:
format
- the value for theformat
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
-
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 thestride
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setUpdateRegion
The update region forGdk.MemoryTextureBuilder: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
-