TextTag

open class TextTag(pointer: <Error class: unknown class><<Error class: unknown class>>)

A tag that can be applied to text contained in a GtkTextBuffer.

You may wish to begin by reading the section-text-widget.html, 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 class@Gtk.TextTagTable for a given GtkTextBuffer before using them with that buffer.

method@Gtk.TextBuffer.create_tag is the best way to create tags. See “gtk4-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.

Skipped during bindings generation

  • method accumulative-margin: Property has no getter nor setter

  • method allow-breaks: Property has no getter nor setter

  • method allow-breaks-set: Property has no getter nor setter

  • method background: Property has no getter nor setter

  • method background-full-height: Property has no getter nor setter

  • method background-full-height-set: Property has no getter nor setter

  • method background-rgba: Property has no getter nor setter

  • method background-set: Property has no getter nor setter

  • method direction: Property has no getter nor setter

  • method editable: Property has no getter nor setter

  • method editable-set: Property has no getter nor setter

  • method fallback: Property has no getter nor setter

  • method fallback-set: Property has no getter nor setter

  • method family: Property has no getter nor setter

  • method family-set: Property has no getter nor setter

  • method font: Property has no getter nor setter

  • method font-desc: Property has no getter nor setter

  • method font-features: Property has no getter nor setter

  • method font-features-set: Property has no getter nor setter

  • method foreground: Property has no getter nor setter

  • method foreground-rgba: Property has no getter nor setter

  • method foreground-set: Property has no getter nor setter

  • method indent: Property has no getter nor setter

  • method indent-set: Property has no getter nor setter

  • method insert-hyphens: Property has no getter nor setter

  • method insert-hyphens-set: Property has no getter nor setter

  • method invisible: Property has no getter nor setter

  • method invisible-set: Property has no getter nor setter

  • method justification: Property has no getter nor setter

  • method justification-set: Property has no getter nor setter

  • method language: Property has no getter nor setter

  • method language-set: Property has no getter nor setter

  • method left-margin: Property has no getter nor setter

  • method left-margin-set: Property has no getter nor setter

  • method letter-spacing: Property has no getter nor setter

  • method letter-spacing-set: Property has no getter nor setter

  • method line-height: Property has no getter nor setter

  • method line-height-set: Property has no getter nor setter

  • method name: Property has no getter nor setter

  • method overline: Property has no getter nor setter

  • method overline-rgba: Property has no getter nor setter

  • method overline-rgba-set: Property has no getter nor setter

  • method overline-set: Property has no getter nor setter

  • method paragraph-background: Property has no getter nor setter

  • method paragraph-background-rgba: Property has no getter nor setter

  • method paragraph-background-set: Property has no getter nor setter

  • method pixels-above-lines: Property has no getter nor setter

  • method pixels-above-lines-set: Property has no getter nor setter

  • method pixels-below-lines: Property has no getter nor setter

  • method pixels-below-lines-set: Property has no getter nor setter

  • method pixels-inside-wrap: Property has no getter nor setter

  • method pixels-inside-wrap-set: Property has no getter nor setter

  • method right-margin: Property has no getter nor setter

  • method right-margin-set: Property has no getter nor setter

  • method rise: Property has no getter nor setter

  • method rise-set: Property has no getter nor setter

  • method scale: Property has no getter nor setter

  • method scale-set: Property has no getter nor setter

  • method sentence: Property has no getter nor setter

  • method sentence-set: Property has no getter nor setter

  • method show-spaces: Property has no getter nor setter

  • method show-spaces-set: Property has no getter nor setter

  • method size: Property has no getter nor setter

  • method size-points: Property has no getter nor setter

  • method size-set: Property has no getter nor setter

  • method stretch: Property has no getter nor setter

  • method stretch-set: Property has no getter nor setter

  • method strikethrough: Property has no getter nor setter

  • method strikethrough-rgba: Property has no getter nor setter

  • method strikethrough-rgba-set: Property has no getter nor setter

  • method strikethrough-set: Property has no getter nor setter

  • method style: Property has no getter nor setter

  • method style-set: Property has no getter nor setter

  • method tabs: Property has no getter nor setter

  • method tabs-set: Property has no getter nor setter

  • method text-transform: Property has no getter nor setter

  • method text-transform-set: Property has no getter nor setter

  • method underline: Property has no getter nor setter

  • method underline-rgba: Property has no getter nor setter

  • method underline-rgba-set: Property has no getter nor setter

  • method underline-set: Property has no getter nor setter

  • method variant: Property has no getter nor setter

  • method variant-set: Property has no getter nor setter

  • method weight: Property has no getter nor setter

  • method weight-set: Property has no getter nor setter

  • method word: Property has no getter nor setter

  • method word-set: Property has no getter nor setter

  • method wrap-mode: Property has no getter nor setter

  • method wrap-mode-set: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(name: String? = null)

Creates a GtkTextTag.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkTextTagPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun changed(sizeChanged: Boolean)

Emits the signal@Gtk.TextTagTable::tag-changed signal on the GtkTextTagTable where the tag is included.

Link copied to clipboard
open fun getPriority(): <Error class: unknown class>

Get the tag priority.

Link copied to clipboard
open fun setPriority(priority: <Error class: unknown class>)

Sets the priority of a GtkTextTag.