Tag

Constructors

this
this(GtkSourceTag* gtkSourceTag, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this(string name)

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

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getTagStruct
GtkSourceTag* getTagStruct(bool transferOwnership = false)

Get the main Gtk struct

Static functions

getType
GType getType()

Variables

gtkSourceTag
GtkSourceTag* gtkSourceTag;

the main Gtk struct

Inherited Members

From TextTag

gtkTextTag
GtkTextTag* gtkTextTag;

the main Gtk struct

getTextTagStruct
GtkTextTag* getTextTagStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
changed
void changed(bool sizeChanged)

Emits the tag-changed signal on the gtk.TextTagTable where the tag is included.

event
bool event(ObjectG eventObject, Event event, TextIter iter)

Emits the “event” signal on the gtk.TextTag

getPriority
int getPriority()

Get the tag priority.

setPriority
void setPriority(int priority)

Sets the priority of a gtk.TextTag Valid priorities start at 0 and go to one less than TextTag.tableGetSize. 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 TextBuffer.createTag, which adds the tag to the buffer’s table automatically.

addOnEvent
gulong addOnEvent(bool delegate(ObjectG, Event, TextIter, TextTag) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::event signal is emitted when an event occurs on a region of the buffer marked with this tag.

Meta