Package org.gnome.gdk
Class GLTextureBuilder.Builder<B extends GLTextureBuilder.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGLTextureBuilder
object.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 optionalGLSync
object.setUpdateRegion
(org.freedesktop.cairo.Region updateRegion) The update region forGdk.GLTextureBuilder:update-texture
.setUpdateTexture
(Texture updateTexture) The textureGdk.GLTextureBuilder: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 theGLTextureBuilder
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 toGLTextureBuilder
.- Overrides:
build
in classGObject.Builder<B extends GLTextureBuilder.Builder<B>>
- Returns:
- a new instance of
GLTextureBuilder
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
-
setContext
-
setFormat
The format when downloading the texture.- Parameters:
format
- the value for theformat
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setHasMipmap
If the texture has a mipmap.- Parameters:
hasMipmap
- the value for thehas-mipmap
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
-
setId
The texture ID to use.- Parameters:
id
- the value for theid
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSync
An optionalGLSync
object.If this is set, GTK will wait on it before using the texture.
- Parameters:
sync
- the value for thesync
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
-