Index

Package: Text_Child_Anchor

Description

package Gtk.Text_Child_Anchor is
A Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor 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.

Classes

Gtk_Text_Child_Anchor_Record

type Gtk_Text_Child_Anchor_Record is new GObject_Record with null record;

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)

Types

Gtk_Text_Child_Anchor

type Gtk_Text_Child_Anchor is access all Gtk_Text_Child_Anchor_Record'Class;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Anchor: out Gtk_Text_Child_Anchor);

Initialize

procedure Initialize 
(Anchor: not null access Gtk_Text_Child_Anchor_Record'Class);
Creates a new Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor. Usually you would then insert it into a Gtk.Text_Buffer.Gtk_Text_Buffer 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.

Gtk_Text_Child_Anchor_New

function Gtk_Text_Child_Anchor_New return Gtk_Text_Child_Anchor;
Creates a new Gtk.Text_Child_Anchor.Gtk_Text_Child_Anchor. Usually you would then insert it into a Gtk.Text_Buffer.Gtk_Text_Buffer 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.

Get_Type

function Get_Type return Glib.GType;

Get_Deleted

function Get_Deleted 
(Anchor: not null access Gtk_Text_Child_Anchor_Record) return Boolean;
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.

Get_Widgets

function Get_Widgets 
(Anchor: not null access Gtk_Text_Child_Anchor_Record) return Gtk.Widget.Widget_SList.GSlist;
Gets a list of all widgets anchored at this child anchor. The returned list should be freed with g_list_free.