Package org.gnome.gtksourceview
Class MarkAttributes.Builder<B extends MarkAttributes.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtksourceview.MarkAttributes.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
MarkAttributes
public static class MarkAttributes.Builder<B extends MarkAttributes.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 theMarkAttributes
object.The code should connect to this signal to provide a tooltip for givenmark
.The code should connect to this signal to provide a tooltip for givenmark
.setBackground
(RGBA background) A color used for background of a line.AGIcon
that may be a base of a rendered icon.setIconName
(String iconName) An icon name that may be a base of a rendered icon.AGdkPixbuf
that may be a base of a rendered icon.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 theMarkAttributes
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 toMarkAttributes
.- Overrides:
build
in classGObject.Builder<B extends MarkAttributes.Builder<B>>
- Returns:
- a new instance of
MarkAttributes
with the properties that were set in the Builder object.
-
setBackground
-
setGicon
-
setIconName
-
setPixbuf
-
onQueryTooltipMarkup
The code should connect to this signal to provide a tooltip for givenmark
. The tooltip can contain a markup.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onQueryTooltipText
The code should connect to this signal to provide a tooltip for givenmark
. The tooltip should be just a plain text.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-