Package org.gnome.gtksourceview
Class SpaceDrawer.Builder<B extends SpaceDrawer.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtksourceview.SpaceDrawer.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
SpaceDrawer
public static class SpaceDrawer.Builder<B extends SpaceDrawer.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 theSpaceDrawer
object.setEnableMatrix
(boolean enableMatrix) Whether theSpaceDrawer:matrix
property is enabled.The property is aGLib.Variant
property to specify where and what kind of white spaces to draw.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 theSpaceDrawer
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 toSpaceDrawer
.- Overrides:
build
in classGObject.Builder<B extends SpaceDrawer.Builder<B>>
- Returns:
- a new instance of
SpaceDrawer
with the properties that were set in the Builder object.
-
setEnableMatrix
Whether theSpaceDrawer:matrix
property is enabled.- Parameters:
enableMatrix
- the value for theenable-matrix
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMatrix
The property is aGLib.Variant
property to specify where and what kind of white spaces to draw.The
GLib.Variant
is of type"au"
, an array of unsigned integers. Each integer is a combination ofSpaceTypeFlags
. There is one integer for eachSpaceLocationFlags
, in the same order as they are defined in the enum (SpaceLocationFlags.NONE
andSpaceLocationFlags.ALL
are not taken into account).If the array is shorter than the number of locations, then the value for the missing locations will be
SpaceTypeFlags.NONE
.By default,
SpaceTypeFlags.ALL
is set for all locations.4- Parameters:
matrix
- the value for thematrix
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-