Interface AccessibleText

All Superinterfaces:
Accessible, Proxy
All Known Implementing Classes:
AccessibleText.AccessibleText$Impl, Inscription, Label, Map, Text, TextView, View

@Generated("org.javagi.JavaGI") public interface AccessibleText extends Proxy, Accessible

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
  • Method Details

    • getType

      static @Nullable Type getType()
      Get the GType of the AccessibleText class.
      Returns:
      the GType
    • 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.

      Since:
      4.14
    • updateContents

      default void updateContents(AccessibleTextContentChange change, int start, int end)

      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 contents
      start - the starting offset of the change, in characters
      end - the end offset of the change, in characters
      Since:
      4.14
    • 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.

      Since:
      4.14