gtk.text_tag
Module for [TextTag] class
Types 3
You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.
Tags should be in the #GtkTextTagTable for a given #GtkTextBuffer before using them with that buffer.
gtk.text_buffer.TextBuffer.createTag is the best way to create tags. See “gtk3-demo” for numerous examples.
For each property of #GtkTextTag, there is a “set” property, e.g. “font-set” corresponds to “font”. These “set” properties reflect whether a property has been set or not. They are maintained by GTK+ and you should not set them independently.
TextTagGidBuilder builder() static nothrowGet builder for [gtk.text_tag.TextTag] Returns: New builder objectbool accumulativeMargin() @property nothrowGet `accumulativeMargin` property. Returns: Whether the margins accumulate or override each other.void accumulativeMargin(bool propval) @property nothrowSet `accumulativeMargin` property. Params: propval = Whether the margins accumulate or override each other.gdk.color.Color backgroundGdk() @property nothrowGet `backgroundGdk` property. Returns: Background color as a #GdkColor.void backgroundGdk(gdk.color.Color propval) @property nothrowSet `backgroundGdk` property. Params: propval = Background color as a #GdkColor.gdk.rgba.RGBA backgroundRgba() @property nothrowGet `backgroundRgba` property. Returns: Background color as a #GdkRGBA.void backgroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `backgroundRgba` property. Params: propval = Background color as a #GdkRGBA.bool fallback() @property nothrowGet `fallback` property. Returns: Whether font fallback is enabled.void fallback(bool propval) @property nothrowSet `fallback` property. Params: propval = Whether font fallback is enabled.string font() @property nothrowGet `font` property. Returns: Font description as string, e.g. \"Sans Italic 12\".void font(string propval) @property nothrowSet `font` property. Params: propval = Font description as string, e.g. \"Sans Italic 12\".string fontFeatures() @property nothrowGet `fontFeatures` property. Returns: OpenType font features, as a string.void fontFeatures(string propval) @property nothrowSet `fontFeatures` property. Params: propval = OpenType font features, as a string.gdk.color.Color foregroundGdk() @property nothrowGet `foregroundGdk` property. Returns: Foreground color as a #GdkColor.void foregroundGdk(gdk.color.Color propval) @property nothrowSet `foregroundGdk` property. Params: propval = Foreground color as a #GdkColor.gdk.rgba.RGBA foregroundRgba() @property nothrowGet `foregroundRgba` property. Returns: Foreground color as a #GdkRGBA.void foregroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBA.void invisible(bool propval) @property nothrowSet `invisible` property. Params: propval = Whether this text is hidden.string language() @property nothrowGet `language` property. Returns: The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.void language(string propval) @property nothrowSet `language` property. Params: propval = The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.int letterSpacing() @property nothrowGet `letterSpacing` property. Returns: Extra spacing between graphemes, in Pango units.void letterSpacing(int propval) @property nothrowSet `letterSpacing` property. Params: propval = Extra spacing between graphemes, in Pango units.void paragraphBackground(string propval) @property nothrowSet `paragraphBackground` property. Params: propval = The paragraph background color as a string.gdk.color.Color paragraphBackgroundGdk() @property nothrowGet `paragraphBackgroundGdk` property. Returns: The paragraph background color as a #GdkColor.void paragraphBackgroundGdk(gdk.color.Color propval) @property nothrowSet `paragraphBackgroundGdk` property. Params: propval = The paragraph background color as a #GdkColor.gdk.rgba.RGBA paragraphBackgroundRgba() @property nothrowGet `paragraphBackgroundRgba` property. Returns: The paragraph background color as a #GdkRGBA.void paragraphBackgroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `paragraphBackgroundRgba` property. Params: propval = The paragraph background color as a #GdkRGBA.gdk.rgba.RGBA strikethroughRgba() @property nothrowGet `strikethroughRgba` property. Returns: This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.void strikethroughRgba(gdk.rgba.RGBA propval) @property nothrowSet `strikethroughRgba` property. Params: propval = This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.bool strikethroughRgbaSet() @property nothrowGet `strikethroughRgbaSet` property. Returns: If the #GtkTextTag:strikethrough-rgba property has been set.void strikethroughRgbaSet(bool propval) @property nothrowSet `strikethroughRgbaSet` property. Params: propval = If the #GtkTextTag:strikethrough-rgba property has been set.gdk.rgba.RGBA underlineRgba() @property nothrowGet `underlineRgba` property. Returns: This property modifies the color of underlines. If not set, underlines will use the forground color.void underlineRgba(gdk.rgba.RGBA propval) @property nothrowSet `underlineRgba` property. Params: propval = This property modifies the color of underlines. If not set, underlines will use the forground color.bool underlineRgbaSet() @property nothrowGet `underlineRgbaSet` property. Returns: If the #GtkTextTag:underline-rgba property has been set.void underlineRgbaSet(bool propval) @property nothrowSet `underlineRgbaSet` property. Params: propval = If the #GtkTextTag:underline-rgba property has been set.void changed(bool sizeChanged) nothrowEmits the #GtkTextTagTable::tag-changed signal on the #GtkTextTagTable where the tag is included.bool event(gobject.object.ObjectWrap eventObject, gdk.event.Event event, gtk.text_iter.TextIter iter) nothrowEmits the “event” signal on the #GtkTextTag.void setPriority(int priority) nothrowSets the priority of a #GtkTextTag. Valid priorities start at 0 and go to one less than [gtk.text_tag_table.TextTagTable.getSize]. Each tag in a table has a unique priority; setting the priority of...gulong connectEvent(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gobject.object.ObjectWrap)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gdk.event.Event)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gtk.text_iter.TextIter)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.text_tag.TextTag)))
&& Parameters!T.length < 5) nothrowConnect to `Event` signal.Fluent builder implementation template for gtk.text_tag.TextTag
T accumulativeMargin(bool propval) nothrowSet `accumulativeMargin` property. Params: propval = Whether the margins accumulate or override each other.T background(string propval) nothrowT backgroundFullHeight(bool propval) nothrowT backgroundFullHeightSet(bool propval) nothrowT backgroundGdk(gdk.color.Color propval) nothrowSet `backgroundGdk` property. Params: propval = Background color as a #GdkColor. Returns: Builder instance for fluent chainingT backgroundRgba(gdk.rgba.RGBA propval) nothrowSet `backgroundRgba` property. Params: propval = Background color as a #GdkRGBA. Returns: Builder instance for fluent chainingT backgroundSet(bool propval) nothrowT direction(gtk.types.TextDirection propval) nothrowT editable(bool propval) nothrowT editableSet(bool propval) nothrowT fallback(bool propval) nothrowSet `fallback` property. Params: propval = Whether font fallback is enabled.T fallbackSet(bool propval) nothrowT family(string propval) nothrowT familySet(bool propval) nothrowT font(string propval) nothrowSet `font` property. Params: propval = Font description as string, e.g. \"Sans Italic 12\".T fontDesc(pango.font_description.FontDescription propval) nothrowT fontFeatures(string propval) nothrowSet `fontFeatures` property. Params: propval = OpenType font features, as a string. Returns: Builder instance for fluent chainingT fontFeaturesSet(bool propval) nothrowT foreground(string propval) nothrowT foregroundGdk(gdk.color.Color propval) nothrowSet `foregroundGdk` property. Params: propval = Foreground color as a #GdkColor. Returns: Builder instance for fluent chainingT foregroundRgba(gdk.rgba.RGBA propval) nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBA. Returns: Builder instance for fluent chainingT foregroundSet(bool propval) nothrowT indent(int propval) nothrowT indentSet(bool propval) nothrowT invisible(bool propval) nothrowSet `invisible` property. Params: propval = Whether this text is hidden.T invisibleSet(bool propval) nothrowT justification(gtk.types.Justification propval) nothrowT justificationSet(bool propval) nothrowT language(string propval) nothrowSet `language` property. Params: propval = The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.T languageSet(bool propval) nothrowT leftMargin(int propval) nothrowT leftMarginSet(bool propval) nothrowT letterSpacing(int propval) nothrowSet `letterSpacing` property. Params: propval = Extra spacing between graphemes, in Pango units. Returns: Builder instance for fluent chainingT letterSpacingSet(bool propval) nothrowT name(string propval) nothrowT paragraphBackground(string propval) nothrowSet `paragraphBackground` property. Params: propval = The paragraph background color as a string. Returns: Builder instance for fluent chainingT paragraphBackgroundGdk(gdk.color.Color propval) nothrowSet `paragraphBackgroundGdk` property. Params: propval = The paragraph background color as a #GdkColor. Returns: Builder instance for fluent chainingT paragraphBackgroundRgba(gdk.rgba.RGBA propval) nothrowSet `paragraphBackgroundRgba` property. Params: propval = The paragraph background color as a #GdkRGBA. Returns: Builder instance for fluent chainingT paragraphBackgroundSet(bool propval) nothrowT pixelsAboveLines(int propval) nothrowT pixelsAboveLinesSet(bool propval) nothrowT pixelsBelowLines(int propval) nothrowT pixelsBelowLinesSet(bool propval) nothrowT pixelsInsideWrap(int propval) nothrowT pixelsInsideWrapSet(bool propval) nothrowT rightMargin(int propval) nothrowT rightMarginSet(bool propval) nothrowT rise(int propval) nothrowT riseSet(bool propval) nothrowT scale(double propval) nothrowT scaleSet(bool propval) nothrowT size(int propval) nothrowT sizePoints(double propval) nothrowT sizeSet(bool propval) nothrowT stretch(pango.types.Stretch propval) nothrowT stretchSet(bool propval) nothrowT strikethrough(bool propval) nothrowT strikethroughRgba(gdk.rgba.RGBA propval) nothrowSet `strikethroughRgba` property. Params: propval = This property modifies the color of strikeouts. If not set, strikeouts will use the forground color. Returns: Builder instance for fluent chainingT strikethroughRgbaSet(bool propval) nothrowSet `strikethroughRgbaSet` property. Params: propval = If the #GtkTextTag:strikethrough-rgba property has been set. Returns: Builder instance for fluent chainingT strikethroughSet(bool propval) nothrowT style(pango.types.Style propval) nothrowT styleSet(bool propval) nothrowT tabs(pango.tab_array.TabArray propval) nothrowT tabsSet(bool propval) nothrowT underline(pango.types.Underline propval) nothrowT underlineRgba(gdk.rgba.RGBA propval) nothrowSet `underlineRgba` property. Params: propval = This property modifies the color of underlines. If not set, underlines will use the forground color.T underlineRgbaSet(bool propval) nothrowSet `underlineRgbaSet` property. Params: propval = If the #GtkTextTag:underline-rgba property has been set. Returns: Builder instance for fluent chainingT underlineSet(bool propval) nothrowT variant(pango.types.Variant propval) nothrowT variantSet(bool propval) nothrowT weight(int propval) nothrowT weightSet(bool propval) nothrowT wrapMode(gtk.types.WrapMode propval) nothrowT wrapModeSet(bool propval) nothrowFluent builder for gtk.text_tag.TextTag