Libraries:Gtk:Gtk:TextTag
Types
T
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.
Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
New(name @ Std.String.T) : Gtk.Gtk.TextTag.T
Methods
: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
: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 |