Package org.gnome.gtksourceview
Class GutterRenderer.Builder<B extends GutterRenderer.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.Widget.Builder<B>
org.gnome.gtksourceview.GutterRenderer.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Direct Known Subclasses:
GutterRendererPixbuf.Builder
,GutterRendererText.Builder
- Enclosing class:
GutterRenderer
public static class GutterRenderer.Builder<B extends GutterRenderer.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGutterRenderer
object.The signal is emitted when the renderer is activated.The signal is emitted when the renderer can possibly be activated.setAlignmentMode
(GutterRendererAlignmentMode alignmentMode) The alignment mode of the renderer.setXalign
(float xalign) The horizontal alignment of the renderer.setXpad
(int xpad) The left and right padding of the renderer.setYalign
(float yalign) The vertical alignment of the renderer.setYpad
(int ypad) The top and bottom padding of the renderer.Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theGutterRenderer
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 toGutterRenderer
.- Overrides:
build
in classWidget.Builder<B extends GutterRenderer.Builder<B>>
- Returns:
- a new instance of
GutterRenderer
with the properties that were set in the Builder object.
-
setAlignmentMode
The alignment mode of the renderer.This can be used to indicate that in the case a cell spans multiple lines (due to text wrapping) the alignment should work on either the full cell, the first line or the last line.
- Parameters:
alignmentMode
- the value for thealignment-mode
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setXalign
The horizontal alignment of the renderer.Set to 0 for a left alignment. 1 for a right alignment. And 0.5 for centering the cells. A value lower than 0 doesn't modify the alignment.
- Parameters:
xalign
- the value for thexalign
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setXpad
The left and right padding of the renderer.- Parameters:
xpad
- the value for thexpad
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setYalign
The vertical alignment of the renderer.Set to 0 for a top alignment. 1 for a bottom alignment. And 0.5 for centering the cells. A value lower than 0 doesn't modify the alignment.
- Parameters:
yalign
- the value for theyalign
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setYpad
The top and bottom padding of the renderer.- Parameters:
ypad
- the value for theypad
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onActivate
The signal is emitted when the renderer is activated.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onQueryActivatable
The signal is emitted when the renderer can possibly be activated.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onQueryData
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-