Package org.gnome.gdk
Class GLTextureBuilder.Builder<B extends GLTextureBuilder.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.GLTextureBuilder.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
GLTextureBuilder
public static class GLTextureBuilder.Builder<B extends GLTextureBuilder.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 theGLTextureBuilderobject.setColorState(ColorState colorState) The color state of the texture.setContext(GLContext context) The context owning the texture.setFormat(MemoryFormat format) The format when downloading the texture.setHasMipmap(boolean hasMipmap) If the texture has a mipmap.setHeight(int height) The height of the texture.setId(int id) The texture ID to use.setSync(MemorySegment sync) An optionalGLSyncobject.setUpdateRegion(org.freedesktop.cairo.Region updateRegion) The update region forGdk.GLTextureBuilder:update-texture.setUpdateTexture(Texture updateTexture) The textureGdk.GLTextureBuilder: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 theGLTextureBuilderobject. 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 toGLTextureBuilder.- Overrides:
buildin classGObject.Builder<B extends GLTextureBuilder.Builder<B>>- Returns:
- a new instance of
GLTextureBuilderwith 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
-
setContext
-
setFormat
The format when downloading the texture.- Parameters:
format- the value for theformatproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-
setHasMipmap
If the texture has a mipmap.- Parameters:
hasMipmap- the value for thehas-mipmapproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-
setHeight
The height of the texture.- Parameters:
height- the value for theheightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-
setId
The texture ID to use.- Parameters:
id- the value for theidproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-
setSync
An optionalGLSyncobject.If this is set, GTK will wait on it before using the texture.
- Parameters:
sync- the value for thesyncproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-
setUpdateRegion
The update region forGdk.GLTextureBuilder:update-texture.- Parameters:
updateRegion- the value for theupdate-regionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-
setUpdateTexture
-
setWidth
The width of the texture.- Parameters:
width- the value for thewidthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.12
-