AccessibleText
Object Hierarchy:
Gtk.AccessibleText
Gtk.AccessibleText
Gtk.AccessibleText
GLib.Object
GLib.Object
GLib.Object->Gtk.AccessibleText
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Gtk.AccessibleText
Description:
[
CCode ( type_cname =
"GtkAccessibleTextInterface" , type_id =
"gtk_accessible_text_get_type ()" ) ]
[
Version ( since =
"4.14" ) ]
public interface AccessibleText :
Object ,
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 [enum@Gtk.AccessibleProperty.LABEL] or the [enum@Gtk.AccessibleProperty.DESCRIPTION] properties for accessible objects
containing simple, unformatted text.
All known implementing classes:
Content:
Methods:
public abstract bool get_accessible_text_attributes (uint offset, out AccessibleTextRange [] ranges, out string [] attribute_names, out string [] attribute_values)
public abstract uint get_caret_position ()
Retrieves the position of the caret inside the accessible object.
public abstract Bytes get_contents (uint start, uint end)
Retrieve the current contents of the accessible object within the given
range.
public abstract Bytes get_contents_at (uint offset, AccessibleTextGranularity granularity, out uint start, out uint end)
Retrieve the current contents of the accessible object starting from the
given offset, and using the given granularity.
public abstract bool get_selection (out AccessibleTextRange [] ranges)
Retrieves the selection ranges in the accessible object.
public void update_caret_position ()
Updates the position of the caret.
public void update_contents (AccessibleTextContentChange change, uint start, uint end)
Notifies assistive technologies of a change in contents.
public void update_selection_bound ()
Updates the boundary of the selection.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible