Interface AccessibleText
- All Superinterfaces:
Accessible, Proxy
- All Known Implementing Classes:
AccessibleText.AccessibleText$Impl, Inscription, Label, Map, Text, TextView, View
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 Gtk.AccessibleProperty.LABEL or the
Gtk.AccessibleProperty.DESCRIPTION properties for accessible
objects containing simple, unformatted text.
- Since:
- 4.14
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe AccessibleText$Impl type represents a native instance of the AccessibleText interface.static classThe interface vtable for accessible objects containing text.Nested classes/interfaces inherited from interface Accessible
Accessible.Accessible$Impl, Accessible.AccessibleInterface, Accessible.Builder<B> -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the AccessibleText class.default voidUpdates the position of the caret.default voidupdateContents(AccessibleTextContentChange change, int start, int end) Notifies assistive technologies of a change in contents.default voidUpdates the boundary of the selection.Methods inherited from interface Accessible
announce, getAccessibleId, getAccessibleParent, getAccessibleRole, getAtContext, getBounds, getFirstAccessibleChild, getNextAccessibleSibling, getPlatformState, resetProperty, resetRelation, resetState, setAccessibleParent, updateNextAccessibleSibling, updatePlatformState, updateProperty, updateRelation, updateState
-
Method Details
-
getType
-
updateCaretPosition
default void updateCaretPosition()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.- Since:
- 4.14
-
updateContents
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.
- Parameters:
change- the type of change in the contentsstart- the starting offset of the change, in charactersend- the end offset of the change, in characters- Since:
- 4.14
-
updateSelectionBound
default void updateSelectionBound()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.- Since:
- 4.14
-