SynopsisGailTextUtil; enum GailOffsetType; GailTextUtil* gail_text_util_new (void); void gail_text_util_text_setup (GailTextUtil *textutil, const gchar *text); void gail_text_util_buffer_setup (GailTextUtil *textutil, GtkTextBuffer *buffer); gchar* gail_text_util_get_text (GailTextUtil *textutil, gpointer layout, GailOffsetType function, AtkTextBoundary boundary_type, gint offset, gint *start_offset, gint *end_offset); gchar* gail_text_util_get_substring (GailTextUtil *textutil, gint start_pos, gint end_pos); DescriptionGailTextUtil is a utility class which can be used to implement the AtkText functions which get text for accessible objects which implement AtkText. In GAIL it is used by the accsesible objects for GnomeCanvasText, GtkEntry, GtkLabel, GtkCellRendererText and GtkTextview. DetailsGailTextUtiltypedef struct { GObject parent; GtkTextBuffer *buffer; } GailTextUtil; The GailTextCell structure should not be accessed directly. enum GailOffsetTypetypedef enum { GAIL_BEFORE_OFFSET, GAIL_AT_OFFSET, GAIL_AFTER_OFFSET }GailOffsetType;
Specifies which of the functions
gail_text_util_new ()GailTextUtil* gail_text_util_new (void); This function creates a new GailTextUtil object.
gail_text_util_text_setup ()void gail_text_util_text_setup (GailTextUtil *textutil, const gchar *text); This function initializes the GailTextUtil with the specified character string,
gail_text_util_buffer_setup ()void gail_text_util_buffer_setup (GailTextUtil *textutil, GtkTextBuffer *buffer); This function initializes the GailTextUtil with the specified GtkTextBuffer
gail_text_util_get_text ()gchar* gail_text_util_get_text (GailTextUtil *textutil, gpointer layout, GailOffsetType function, AtkTextBoundary boundary_type, gint offset, gint *start_offset, gint *end_offset); This function gets the requested substring from the text in the GtkTextUtil. The layout is used only for getting the text on a line. The value is NULL for a GtkTextView which is not wrapped, is a GtkTextView for a GtkTextView which is wrapped and is a PangoLayout otherwise.
gail_text_util_get_substring ()gchar* gail_text_util_get_substring (GailTextUtil *textutil, gint start_pos, gint end_pos);
Gets the substring indicated by
|