Class

GtkTextTagTable

Description [src]

class Gtk.TextTagTable : GObject.Object {
  parent_instance: GObject,
  priv: GtkTextTagTablePrivate*
}

You may wish to begin by reading the [text widget conceptual overview][TextWidget] 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 <child> element.

An example of a UI definition fragment specifying tags:

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

Hierarchy

hierarchy this GtkTextTagTable implements_0 GtkBuildable this--implements_0 ancestor_0 GObject ancestor_0--this

Ancestors

Implements

Constructors

gtk_text_tag_table_new

Creates a new GtkTextTagTable. The table contains no tags by default.

Instance methods

gtk_text_tag_table_add

Add a tag to the table. The tag is assigned the highest priority in the table.

gtk_text_tag_table_foreach

Calls func on each tag in table, with user data data. Note that the table may not be modified while iterating over it (you can’t add/remove tags).

gtk_text_tag_table_get_size

Returns the size of the table (number of tags)

gtk_text_tag_table_lookup

Look up a named tag.

gtk_text_tag_table_remove

Remove a tag from the table. If a GtkTextBuffer has table as its tag table, the tag is removed from the buffer. The table’s reference to the tag is removed, so the tag will end up destroyed if you don’t have a reference to it.

Methods inherited from GObject (42)
Methods inherited from GtkBuildable (10)
gtk_buildable_add_child

Adds a child to buildable. type is an optional string describing how the child should be added.

Available since: 2.12

gtk_buildable_construct_child

Constructs a child of buildable with the name name.

Available since: 2.12

gtk_buildable_custom_finished

This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.

Available since: 2.12

gtk_buildable_custom_tag_end

This is called at the end of each custom element handled by the buildable.

Available since: 2.12

gtk_buildable_custom_tag_start

This is called for each unknown element under <child>.

Available since: 2.12

gtk_buildable_get_internal_child

Get the internal child called childname of the buildable object.

Available since: 2.12

gtk_buildable_get_name

Gets the name of the buildable object.

Available since: 2.12

gtk_buildable_parser_finished

Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.

Available since: 2.12

gtk_buildable_set_buildable_property

Sets the property name name to value on the buildable object.

Available since: 2.12

gtk_buildable_set_name

Sets the name of the buildable object.

Available since: 2.12

Signals

Gtk.TextTagTable::tag-added
No description available.
Gtk.TextTagTable::tag-changed
No description available.
Gtk.TextTagTable::tag-removed
No description available.
Signals inherited from GObject (1)

Class structure

struct GtkTextTagTableClass {
  GObjectClass parent_class;
  void (* tag_changed) (
    GtkTextTagTable* table,
    GtkTextTag* tag,
    gboolean size_changed
  );
  void (* tag_added) (
    GtkTextTagTable* table,
    GtkTextTag* tag
  );
  void (* tag_removed) (
    GtkTextTagTable* table,
    GtkTextTag* tag
  );
  void (* _gtk_reserved1) (
void
  );
  void (* _gtk_reserved2) (
void
  );
  void (* _gtk_reserved3) (
void
  );
  void (* _gtk_reserved4) (
void
  );
  
}
Class members
parent_class
GObjectClass
  No description available.
tag_changed
void (* tag_changed) (
    GtkTextTagTable* table,
    GtkTextTag* tag,
    gboolean size_changed
  )
  No description available.
tag_added
void (* tag_added) (
    GtkTextTagTable* table,
    GtkTextTag* tag
  )
  No description available.
tag_removed
void (* tag_removed) (
    GtkTextTagTable* table,
    GtkTextTag* tag
  )
  No description available.
_gtk_reserved1
void (* _gtk_reserved1) (
void
  )
  No description available.
_gtk_reserved2
void (* _gtk_reserved2) (
void
  )
  No description available.
_gtk_reserved3
void (* _gtk_reserved3) (
void
  )
  No description available.
_gtk_reserved4
void (* _gtk_reserved4) (
void
  )
  No description available.

Virtual methods

Gtk.TextTagTableClass.tag_added
No description available.
Gtk.TextTagTableClass.tag_changed
No description available.
Gtk.TextTagTableClass.tag_removed
No description available.