Class MarkAttributes

java.lang.Object
All Implemented Interfaces:
Proxy

@Generated("io.github.jwharm.JavaGI") public class MarkAttributes extends GObject
The source mark attributes object.

GtkSourceMarkAttributes is an object specifying attributes used by a View to visually show lines marked with Marks of a specific category. It allows you to define a background color of a line, an icon shown in gutter and tooltips.

The background color is used as a background of a line where a mark is placed and it can be set with setBackground(org.gnome.gdk.RGBA). To check if any custom background color was defined and what color it is, use getBackground(org.gnome.gdk.RGBA).

An icon is a graphic element which is shown in the gutter of a view. An example use is showing a red filled circle in a debugger to show that a breakpoint was set in certain line. To get an icon that will be placed in a gutter, first a base for it must be specified and then renderIcon(org.gnome.gtk.Widget, int) must be called. There are several ways to specify a base for an icon:

Using any of the above functions overrides the one used earlier. But note that a getter counterpart of earlier used function can still return some value, but it is just not used when rendering the proper icon.

To provide meaningful tooltips for a given mark of a category, you should connect to MarkAttributes::query-tooltip-text or MarkAttributes::query-tooltip-markup where the latter takes precedence.