gtksource.mark_attributes

Module for [MarkAttributes] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
MarkAttributes self() nothrowReturns `this`, for use in `with` statements.
MarkAttributesGidBuilder builder() static nothrowGet builder for [gtksource.mark_attributes.MarkAttributes] Returns: New builder object
gdk.rgba.RGBA background() @property nothrowGet `background` property. Returns: A color used for background of a line.
void background(gdk.rgba.RGBA propval) @property nothrowSet `background` property. Params: propval = A color used for background of a line.
gio.icon.Icon gicon() @property nothrowGet `gicon` property. Returns: A #GIcon that may be a base of a rendered icon.
void gicon(gio.icon.Icon propval) @property nothrowSet `gicon` property. Params: propval = A #GIcon that may be a base of a rendered icon.
string iconName() @property nothrowGet `iconName` property. Returns: An icon name that may be a base of a rendered icon.
void iconName(string propval) @property nothrowSet `iconName` property. Params: propval = An icon name that may be a base of a rendered icon.
gdkpixbuf.pixbuf.Pixbuf pixbuf() @property nothrowGet `pixbuf` property. Returns: A #GdkPixbuf that may be a base of a rendered icon.
void pixbuf(gdkpixbuf.pixbuf.Pixbuf propval) @property nothrowSet `pixbuf` property. Params: propval = A #GdkPixbuf that may be a base of a rendered icon.
bool getBackground(out gdk.rgba.RGBA background) nothrowStores background color in background.
gio.icon.Icon getGicon() nothrowGets 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() nothrowGets 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() nothrowGets 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) nothrowQueries for a tooltip by emitting a #GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain a markup.
string getTooltipText(gtksource.mark.Mark mark) nothrowQueries 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) nothrowRenders an icon of given size. The base of the icon is set by the last call to one of: [gtksource.mark_attributes.MarkAttributes.setPixbuf], [gtksource.mark_attributes.MarkAttributes.setGicon] or [...
void setBackground(gdk.rgba.RGBA background) nothrowSets background color to the one given in background.
void setGicon(gio.icon.Icon gicon) nothrowSets an icon to be used as a base for rendered icon.
void setIconName(string iconName) nothrowSets a name of an icon to be used as a base for rendered icon.
void setPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf) nothrowSets 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) nothrowConnect 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) nothrowConnect to `QueryTooltipText` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new source mark attributes. Returns: a new source mark attributes.

Fluent builder implementation template for gtksource.mark_attributes.MarkAttributes

Methods
T background(gdk.rgba.RGBA propval) nothrowSet `background` property. Params: propval = A color used for background of a line. Returns: Builder instance for fluent chaining
T gicon(gio.icon.Icon propval) nothrowSet `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) nothrowSet `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) nothrowSet `pixbuf` property. Params: propval = A #GdkPixbuf that may be a base of a rendered icon. Returns: Builder instance for fluent chaining
Methods
MarkAttributes build() nothrowCreate object from builder. Returns: New object