Gtk.Text_Child_Anchor

Entities

Tagged Types

Access Types

Subprograms

Description

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.

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.

Parameters
Anchor
Return Value

True if the child anchor has been deleted from its buffer

Get_Type

function Get_Type return Glib.GType
Return Value

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.

Parameters
Anchor
Return Value

Gtk_New

procedure Gtk_New (Anchor : out 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. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Anchor

Gtk_Text_Child_Anchor

type Gtk_Text_Child_Anchor is access all Gtk_Text_Child_Anchor_Record'Class;

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.

Return Value

Gtk_Text_Child_Anchor_Record

type Gtk_Text_Child_Anchor_Record is new GObject_Record with null record;

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. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Anchor