Class MarkAttributes.Builder<B extends MarkAttributes.Builder<B>>

java.lang.Object
org.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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public MarkAttributes build()
      Finish building the MarkAttributes object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to MarkAttributes.
      Overrides:
      build in class GObject.Builder<B extends MarkAttributes.Builder<B>>
      Returns:
      a new instance of MarkAttributes with the properties that were set in the Builder object.
    • setBackground

      public B setBackground(RGBA background)
      A color used for background of a line.
      Parameters:
      background - the value for the background property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setGicon

      public B setGicon(Icon gicon)
      A GIcon that may be a base of a rendered icon.
      Parameters:
      gicon - the value for the gicon property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIconName

      public B setIconName(String iconName)
      An icon name that may be a base of a rendered icon.
      Parameters:
      iconName - the value for the icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPixbuf

      public B setPixbuf(Pixbuf pixbuf)
      A GdkPixbuf that may be a base of a rendered icon.
      Parameters:
      pixbuf - the value for the pixbuf property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onQueryTooltipMarkup

      public B onQueryTooltipMarkup(MarkAttributes.QueryTooltipMarkupCallback handler)
      The code should connect to this signal to provide a tooltip for given mark. The tooltip can contain a markup.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onQueryTooltipText

      public B onQueryTooltipText(MarkAttributes.QueryTooltipTextCallback handler)
      The code should connect to this signal to provide a tooltip for given mark. 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: