gtksource.mark_attributes

Module for [MarkAttributes] class

Types 3

Methods
GType _gType() @property
MarkAttributes self()Returns `this`, for use in `with` statements.
MarkAttributesGidBuilder builder()Get builder for [gtksource.mark_attributes.MarkAttributes] Returns: New builder object
gdk.rgba.RGBA background() @propertyGet `background` property. Returns: A color used for background of a line.
void background(gdk.rgba.RGBA propval) @propertySet `background` property. Params: propval = A color used for background of a line.
gio.icon.Icon gicon() @propertyGet `gicon` property. Returns: A #GIcon that may be a base of a rendered icon.
void gicon(gio.icon.Icon propval) @propertySet `gicon` property. Params: propval = A #GIcon that may be a base of a rendered icon.
string iconName() @propertyGet `iconName` property. Returns: An icon name that may be a base of a rendered icon.
void iconName(string propval) @propertySet `iconName` property. Params: propval = An icon name that may be a base of a rendered icon.
gdkpixbuf.pixbuf.Pixbuf pixbuf() @propertyGet `pixbuf` property. Returns: A #GdkPixbuf that may be a base of a rendered icon.
void pixbuf(gdkpixbuf.pixbuf.Pixbuf propval) @propertySet `pixbuf` property. Params: propval = A #GdkPixbuf that may be a base of a rendered icon.
bool getBackground(out gdk.rgba.RGBA background)Stores background color in background.
gio.icon.Icon getGicon()Gets a #GIcon to be used as a base for rendered icon. Note that the icon can be null if it wasn't set earlier. Returns: An icon. The icon belongs to attributes and should not be unreffed.
string getIconName()Gets a name of an icon to be used as a base for rendered icon. Note that the icon name can be null if it wasn't set earlier. Returns: An icon name. The string belongs to attributes and should not b...
gdkpixbuf.pixbuf.Pixbuf getPixbuf()Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the pixbuf can be null if it wasn't set earlier. Returns: A pixbuf. The pixbuf belongs to attributes and should not be unreffed.
string getTooltipMarkup(gtksource.mark.Mark mark)Queries for a tooltip by emitting a #GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain a markup.
string getTooltipText(gtksource.mark.Mark mark)Queries for a tooltip by emitting a #GtkSourceMarkAttributes::query-tooltip-text signal. The tooltip is a plain text.
gdkpixbuf.pixbuf.Pixbuf renderIcon(gtk.widget.Widget widget, int size)Renders an icon of given size. The base of the icon is set by the last call to one of: [gtksource.markattributes.MarkAttributes.setPixbuf], [gtksource.markattributes.MarkAttributes.setGicon] or [gt...
void setBackground(gdk.rgba.RGBA background)Sets background color to the one given in background.
void setGicon(gio.icon.Icon gicon)Sets an icon to be used as a base for rendered icon.
void setIconName(string iconName)Sets a name of an icon to be used as a base for rendered icon.
void setPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf)Sets a pixbuf to be used as a base for rendered icon.
gulong connectQueryTooltipMarkup(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == string) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.mark.Mark))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtksource.mark_attributes.MarkAttributes))) && Parameters!T.length < 3)Connect to `QueryTooltipMarkup` signal.
gulong connectQueryTooltipText(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == string) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.mark.Mark))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtksource.mark_attributes.MarkAttributes))) && Parameters!T.length < 3)Connect to `QueryTooltipText` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new source mark attributes. Returns: a new source mark attributes.
Methods
T background(gdk.rgba.RGBA propval)Set `background` property. Params: propval = A color used for background of a line. Returns: Builder instance for fluent chaining
T gicon(gio.icon.Icon propval)Set `gicon` property. Params: propval = A #GIcon that may be a base of a rendered icon. Returns: Builder instance for fluent chaining
T iconName(string propval)Set `iconName` property. Params: propval = An icon name that may be a base of a rendered icon. Returns: Builder instance for fluent chaining
T pixbuf(gdkpixbuf.pixbuf.Pixbuf propval)Set `pixbuf` property. Params: propval = A #GdkPixbuf that may be a base of a rendered icon. Returns: Builder instance for fluent chaining

Fluent builder for [gtksource.mark_attributes.MarkAttributes]