Class

GtkTextChildAnchor

Description [src]

class Gtk.TextChildAnchor : GObject.Object {
  parent_instance: GObject
}

A GtkTextChildAnchor is a spot in the buffer where child widgets can be “anchored” (inserted inline, as if they were characters). The anchor can have multiple widgets anchored, to allow for multiple views.

Hierarchy

hierarchy this GtkTextChildAnchor ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

gtk_text_child_anchor_new

Creates a new GtkTextChildAnchor. Usually you would then insert it into a GtkTextBuffer with gtk_text_buffer_insert_child_anchor(). To perform the creation and insertion in one step, use the convenience function gtk_text_buffer_create_child_anchor().

Instance methods

gtk_text_child_anchor_get_deleted

Determines whether a child anchor has been deleted from the buffer. Keep in mind that the child anchor will be unreferenced when removed from the buffer, so you need to hold your own reference (with g_object_ref()) if you plan to use this function — otherwise all deleted child anchors will also be finalized.

gtk_text_child_anchor_get_widgets

Gets a list of all widgets anchored at this child anchor. The returned list should be freed with g_list_free().

Methods inherited from GObject (42)

Signals

Signals inherited from GObject (1)

Class structure

struct GtkTextChildAnchorClass {
  GObjectClass parent_class;
  void (* _gtk_reserved1) (
void
  );
  void (* _gtk_reserved2) (
void
  );
  void (* _gtk_reserved3) (
void
  );
  void (* _gtk_reserved4) (
void
  );
  
}
Class members
parent_class
GObjectClass
  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.