Interface
GtkAccessibleText
since: 4.14
Description [src]
interface Gtk.AccessibleText : Gtk.AccessibleAn 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_ACCESSIBLE_PROPERTY_LABEL or the
GTK_ACCESSIBLE_PROPERTY_DESCRIPTION properties for accessible
objects containing simple, unformatted text.
Available since: 4.14
Prerequisite
In order to implement AccessibleText, your type must inherit fromGtkAccessible.
Instance methods
gtk_accessible_text_update_contents
Notifies assistive technologies of a change in contents.
since: 4.14
Interface structure
struct GtkAccessibleTextInterface {
  GBytes* (* get_contents) (
    GtkAccessibleText* self,
    unsigned int start,
    unsigned int end
  );
  GBytes* (* get_contents_at) (
    GtkAccessibleText* self,
    unsigned int offset,
    GtkAccessibleTextGranularity granularity,
    unsigned int* start,
    unsigned int* end
  );
  unsigned int (* get_caret_position) (
    GtkAccessibleText* self
  );
  gboolean (* get_selection) (
    GtkAccessibleText* self,
    gsize* n_ranges,
    GtkAccessibleTextRange** ranges
  );
  gboolean (* get_attributes) (
    GtkAccessibleText* self,
    unsigned int offset,
    gsize* n_ranges,
    GtkAccessibleTextRange** ranges,
    char*** attribute_names,
    char*** attribute_values
  );
  void (* get_default_attributes) (
    GtkAccessibleText* self,
    char*** attribute_names,
    char*** attribute_values
  );
  gboolean (* get_extents) (
    GtkAccessibleText* self,
    unsigned int start,
    unsigned int end,
    graphene_rect_t* extents
  );
  gboolean (* get_offset) (
    GtkAccessibleText* self,
    const graphene_point_t* point,
    unsigned int* offset
  );
  
}The interface vtable for accessible objects containing text.
Interface members
| get_contents |  | 
| No description available. | |
| get_contents_at |  | 
| No description available. | |
| get_caret_position |  | 
| No description available. | |
| get_selection |  | 
| No description available. | |
| get_attributes |  | 
| No description available. | |
| get_default_attributes |  | 
| No description available. | |
| get_extents |  | 
| No description available. | |
| get_offset |  | 
| No description available. | 
Virtual methods
Gtk.AccessibleText.get_attributes
Retrieves the text attributes inside the accessible object.
since: 4.14
Gtk.AccessibleText.get_caret_position
Retrieves the position of the caret inside the accessible object.
since: 4.14
Gtk.AccessibleText.get_contents
Retrieve the current contents of the accessible object within the given range.
since: 4.14
Gtk.AccessibleText.get_contents_at
Retrieve the current contents of the accessible object starting from the given offset, and using the given granularity.
since: 4.14
Gtk.AccessibleText.get_default_attributes
Retrieves the default text attributes inside the accessible object.
since: 4.14
Gtk.AccessibleText.get_extents
Obtains the extents of a range of text, in widget coordinates.
since: 4.16
Gtk.AccessibleText.get_selection
Retrieves the selection ranges in the accessible object.
since: 4.14