Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: AccessibleText

[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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • AccessibleText (Handle = null)

    Creates a new AccessibleText by wrapping a native handle or another wrapper.

    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • update_caret_position ()

    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.

    • @r None.
  • update_contents (string 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.

    • @p change is the type of change in the contents.
    • @p start is the starting offset of the change, in characters.
    • @p end is the end offset of the change, in characters.
    • @r None.
  • update_selection_bound ()

    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.

    • @r None.