Package org.gnome.gtksourceview
Class Tag.Builder<B extends Tag.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.TextTag.Builder<B>
org.gnome.gtksourceview.Tag.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Tag
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theTag
object.setDrawSpaces
(boolean drawSpaces) Whether to draw white spaces.setDrawSpacesSet
(boolean drawSpacesSet) Whether theTag:draw-spaces
property is set and must be taken into account.Methods inherited from class org.gnome.gtk.TextTag.Builder
setAccumulativeMargin, setAllowBreaks, setAllowBreaksSet, setBackground, setBackgroundFullHeight, setBackgroundFullHeightSet, setBackgroundRgba, setBackgroundSet, setDirection, setEditable, setEditableSet, setFallback, setFallbackSet, setFamily, setFamilySet, setFont, setFontDesc, setFontFeatures, setFontFeaturesSet, setForeground, setForegroundRgba, setForegroundSet, setIndent, setIndentSet, setInsertHyphens, setInsertHyphensSet, setInvisible, setInvisibleSet, setJustification, setJustificationSet, setLanguage, setLanguageSet, setLeftMargin, setLeftMarginSet, setLetterSpacing, setLetterSpacingSet, setLineHeight, setLineHeightSet, setName, setOverline, setOverlineRgba, setOverlineRgbaSet, setOverlineSet, setParagraphBackground, setParagraphBackgroundRgba, setParagraphBackgroundSet, setPixelsAboveLines, setPixelsAboveLinesSet, setPixelsBelowLines, setPixelsBelowLinesSet, setPixelsInsideWrap, setPixelsInsideWrapSet, setRightMargin, setRightMarginSet, setRise, setRiseSet, setScale, setScaleSet, setSentence, setSentenceSet, setShowSpaces, setShowSpaces, setShowSpacesSet, setSize, setSizePoints, setSizeSet, setStretch, setStretchSet, setStrikethrough, setStrikethroughRgba, setStrikethroughRgbaSet, setStrikethroughSet, setStyle, setStyleSet, setTabs, setTabsSet, setTextTransform, setTextTransformSet, setUnderline, setUnderlineRgba, setUnderlineRgbaSet, setUnderlineSet, setVariant, setVariantSet, setWeight, setWeightSet, setWord, setWordSet, setWrapMode, setWrapModeSet
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 theTag
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 toTag
.- Overrides:
build
in classTextTag.Builder<B extends Tag.Builder<B>>
- Returns:
- a new instance of
Tag
with the properties that were set in the Builder object.
-
setDrawSpaces
Whether to draw white spaces.This property takes precedence over the value defined by the
SpaceDrawer
'sSpaceDrawer:matrix
property (only where the tag is applied).Setting this property also changes
Tag:draw-spaces-set
totrue
.- Parameters:
drawSpaces
- the value for thedraw-spaces
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDrawSpacesSet
Whether theTag:draw-spaces
property is set and must be taken into account.- Parameters:
drawSpacesSet
- the value for thedraw-spaces-set
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-