W Wrapl, The Programming Language




Inherits from:

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 Gtk.Gtk.TextTagTable.T for a given Gtk.Gtk.TextBuffer.T before using them with that buffer.

Gtk.Gtk.TextBuffer.CreateTag is the best way to create tags. See gtk-demo for numerous examples.

The "invisible" property was not implemented for GTK+ 2.0. It is working (with minor issues) since 2.8.


Nil : T


GetType() : Gtk.GObject.Type.T

New(name @ Std.String.T) : Gtk.Gtk.TextTag.T

Creates a T. Configure the tag using object arguments, i.e. using g_object_set().

name tag name, or NULL. [allow-none]
Returns a new T


:Event(self @ T, event_object @ Gtk.GObject.Object.T, event @ Gtk.Gdk.Event.T, iter @ Gtk.Gtk.TextIter.T) : Std.Symbol.T

Emits the "event" signal on the T.

tag a T
event_object object that received the event, such as a widget
event the event
iter location where the event was received
Returns result of signal emission (whether the event was handled)

:GetPriority(self @ T) : Std.Integer.SmallT

Get the tag priority.

tag a T
Returns The tag's priority.

:SetPriority(self @ T, priority @ Std.Integer.SmallT) : Std.Object.T

Sets the priority of a T. Valid priorities are start at 0 and go to one less than Gtk.Gtk.TextTagTable.GetSize. Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag. Higher priority tags "win" if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with Gtk.Gtk.TextBuffer.CreateTag, which adds the tag to the buffer's table automatically.

tag a T
priority the new priority