AccessibleText
Object Hierarchy:
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 void get_default_attributes (out string[] attribute_names, out string[] attribute_values)
Retrieves the default text attributes inside the accessible object.
- public abstract bool get_extents (uint start, uint end, Rect extents)
Obtains the extents of a range of text, in widget coordinates.
- public abstract bool get_offset (Point point, out uint offset)
Gets the text offset at a given point.
- public abstract bool get_selection (out AccessibleTextRange[] ranges)
Retrieves the selection ranges in the accessible object.
- public abstract bool set_caret_position (uint offset)
Sets the caret position.
- public abstract bool set_selection (size_t i, AccessibleTextRange range)
Sets the caret position.
- 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