Package org.gnome.gdk
Class Texture.Builder<B extends Texture.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.Texture.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
DmabufTexture.Builder,GLTexture.Builder,MemoryTexture.Builder
- Enclosing class:
Texture
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theTextureobject.setColorState(ColorState colorState) The color state of the texture.setHeight(int height) The height of the texture, in pixels.setWidth(int width) The width of the texture, in pixels.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 theTextureobject. 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 toTexture.- Overrides:
buildin classGObject.Builder<B extends Texture.Builder<B>>- Returns:
- a new instance of
Texturewith 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
-
setHeight
The height of the texture, in pixels.- Parameters:
height- the value for theheightproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setWidth
The width of the texture, in pixels.- Parameters:
width- the value for thewidthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-