gtk.accessible_text_mixin

Module for [AccessibleText] interface mixin

Templates 2

tmplAccessibleTextT()

An interface for accessible objects containing formatted text.

The [gtk.accessible_text.AccessibleText] 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.

Functions
void updateCaretPosition()

Updates the position of the caret.

Implementations of the [gtk.accessible_text.AccessibleText] interface should call this function every time the caret has moved, in order to notify assistive technologies.

void updateContents(gtk.types.AccessibleTextContentChange change, uint start, uint end)

Notifies assistive technologies of a change in contents.

Implementations of the [gtk.accessible_text.AccessibleText] interface 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.

Parameters

changethe type of change in the contents
startthe starting offset of the change, in characters
endthe end offset of the change, in characters
void updateSelectionBound()

Updates the boundary of the selection.

Implementations of the [gtk.accessible_text.AccessibleText] interface should call this function every time the selection has moved, in order to notify assistive technologies.

tmplAccessibleTextGidBuilderT()