1.199 <GtkTextChildAnchor>

Class: <GtkTextChildAnchor>

It derives from <GObject>.

Marks a spot in a <GtkTextBuffer> where child widgets can be “anchored”.

The anchor can have multiple widgets anchored, to allow for multiple views.

Fields

parent-instance

Procedures

Method: text-child-anchor:get-deleted? self ⇒ %return
Method: get-deleted? self ⇒ %return

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 object:ref) if you plan to use this function — otherwise all deleted child anchors will also be finalized.

self

Passed: a <GtkTextChildAnchor>.

a <GtkTextChildAnchor>

%return

Returned: a boolean.

#t if the child anchor has been deleted from its buffer

Method: text-child-anchor:get-widgets self ⇒ %return
Method: get-widgets self ⇒ %return

Gets a list of all widgets anchored at this child anchor.

The order in which the widgets are returned is not defined.

self

Passed: a <GtkTextChildAnchor>.

a <GtkTextChildAnchor>

%return

Returned: a vector, each a <GtkWidget>.

an array of widgets anchored at self

out-len

Not returned: it is the length of %return.

return location for the length of the array

Procedure: text-child-anchor:new ⇒ %return

Creates a new <GtkTextChildAnchor>.

Usually you would then insert it into a <GtkTextBuffer> with text-buffer:insert-child-anchor. To perform the creation and insertion in one step, use the convenience function text-buffer:create-child-anchor.

%return

Returned: a <GtkTextChildAnchor>.

a new <GtkTextChildAnchor>

Procedure: text-child-anchor:new-with-replacement character ⇒ %return

Creates a new <GtkTextChildAnchor> with the given replacement character.

Usually you would then insert it into a <GtkTextBuffer> with text-buffer:insert-child-anchor.

character

Passed: a string.

a replacement character

%return

Returned: a <GtkTextChildAnchor>.

a new <GtkTextChildAnchor>