Interface AccessibleText
- All Superinterfaces:
Accessible
,Proxy
- All Known Implementing Classes:
AccessibleText.AccessibleTextImpl
,Inscription
,Label
,Map
,Text
,TextView
,View
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The AccessibleTextImpl type represents a native instance of the AccessibleText interface.static class
The interface vtable for accessible objects containing text.Nested classes/interfaces inherited from interface org.gnome.gtk.Accessible
Accessible.AccessibleImpl, Accessible.AccessibleInterface, Accessible.Builder<B extends Builder<B>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the AccessibleText classdefault void
Updates the position of the caret.default void
updateContents
(AccessibleTextContentChange change, int start, int end) Notifies assistive technologies of a change in contents.default void
Updates the boundary of the selection.Methods inherited from interface org.gnome.gtk.Accessible
announce, getAccessibleParent, getAccessibleRole, getAtContext, getBounds, getFirstAccessibleChild, getNextAccessibleSibling, getPlatformState, resetProperty, resetRelation, resetState, setAccessibleParent, updateNextAccessibleSibling, updateProperty, updateRelation, updateState
-
Method Details
-
getType
-
updateCaretPosition
default void updateCaretPosition()Updates the position of the caret.Implementations of the
GtkAccessibleText
interface should call this function every time the caret has moved, in order to notify assistive technologies. -
updateContents
Notifies assistive technologies of a change in contents.Implementations of the
GtkAccessibleText
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:
change
- the type of change in the contentsstart
- the starting offset of the change, in charactersend
- the end offset of the change, in characters
-
updateSelectionBound
default void updateSelectionBound()Updates the boundary of the selection.Implementations of the
GtkAccessibleText
interface should call this function every time the selection has moved, in order to notify assistive technologies.
-