Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: object
Marks a spot in a GtkTextBuffer where child widgets can be “anchored”. The
anchor can have multiple widgets anchored, to allow for multiple views.
TextChildAnchor (character = null)
Creates a new
GtkTextChildAnchor. Usually you would then insert it into aGtkTextBufferwith [method@Gtk.TextBuffer.insert_child_anchor]. To perform the creation and insertion in one step, use the convenience function [method@Gtk.TextBuffer.create_child_anchor].
character is a replacement character.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.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.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.