TextTagTable

open class TextTagTable(pointer: <Error class: unknown class><<Error class: unknown class>>) : Buildable

The collection of tags 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.

GtkTextTagTables as GtkBuildable

The GtkTextTagTable implementation of the GtkBuildable interface supports adding tags by specifying “tag” as the “type” attribute of a element.

An example of a UI definition fragment specifying tags:

<object class="GtkTextTagTable">
<child type="tag">
<object class="GtkTextTag"/>
</child>
</object>

Constructors

Link copied to clipboard
constructor()

Creates a new GtkTextTagTable.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkTextTagTablePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun add(tag: TextTag): Boolean

Add a tag to the table.

Link copied to clipboard
fun connectTagAdded(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (tag: TextTag) -> Unit): <Error class: unknown class>

Emitted every time a new tag is added in the GtkTextTagTable.

Link copied to clipboard
fun connectTagChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (tag: TextTag, sizeChanged: Boolean) -> Unit): <Error class: unknown class>

Emitted every time a tag in the GtkTextTagTable changes.

Link copied to clipboard
fun connectTagRemoved(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (tag: TextTag) -> Unit): <Error class: unknown class>

Emitted every time a tag is removed from the GtkTextTagTable.

Link copied to clipboard

Calls @func on each tag in @table, with user data @data.

Link copied to clipboard
open fun getBuildableId(): String?

Gets the ID of the @buildable object.

Link copied to clipboard
open fun getSize(): Int

Returns the size of the table (number of tags)

Link copied to clipboard
open fun lookup(name: String): TextTag?

Look up a named tag.

Link copied to clipboard
open fun remove(tag: TextTag)

Remove a tag from the table.