Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: object
An interface for accessible objects containing formatted text. The
GtkAccessibleText interfaces is meant to be implemented by accessible
objects that have text formatted with attributes, or non-trivial text
contents. You should use the [enum@Gtk.AccessibleProperty.LABEL] or the
[enum@Gtk.AccessibleProperty.DESCRIPTION] properties for accessible objects
containing simple, unformatted text.
AccessibleText (Handle = null)
Creates a new
AccessibleTextby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.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.update_caret_position ()
Updates the position of the caret. Implementations of the
GtkAccessibleTextinterface should call this function every time the caret has moved, in order to notify assistive technologies.
None.update_contents (string change, int start, int end)
Notifies assistive technologies of a change in contents. Implementations of the
GtkAccessibleTextinterface should call this function every time their contents change as the result of an operation, like an insertion or a removal. Note: If the change is a deletion, this function must be called before removing the contents, if it is an insertion, it must be called after inserting the new contents.
change is the type of change in the contents.start is the starting offset of the change, in characters.end is the end offset of the change, in characters.None.update_selection_bound ()
Updates the boundary of the selection. Implementations of the
GtkAccessibleTextinterface should call this function every time the selection has moved, in order to notify assistive technologies.
None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.