#include "flutter/shell/platform/linux/fl_accessible_text_field.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_message_codec.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_value.h"
Go to the source code of this file.
Classes | |
struct | _FlAccessibleTextField |
Typedefs | |
typedef bool(* | FlTextBoundaryCallback) (const PangoLogAttr *attr) |
Functions | |
static void | fl_accessible_text_iface_init (AtkTextIface *iface) |
static void | fl_accessible_editable_text_iface_init (AtkEditableTextIface *iface) |
G_DEFINE_TYPE_WITH_CODE (FlAccessibleTextField, fl_accessible_text_field, FL_TYPE_ACCESSIBLE_NODE, G_IMPLEMENT_INTERFACE(ATK_TYPE_EDITABLE_TEXT, fl_accessible_editable_text_iface_init)) static gchar *get_substring(FlAccessibleTextField *self | |
if (end==-1) | |
return | g_utf8_substring (value, start, end) |
static PangoContext * | get_pango_context (FlAccessibleTextField *self) |
static PangoLayout * | create_pango_layout (FlAccessibleTextField *self) |
static gchar * | get_string_at_offset (FlAccessibleTextField *self, gint start, gint end, FlTextBoundaryCallback is_start, FlTextBoundaryCallback is_end, gint *start_offset, gint *end_offset) |
static gchar * | get_char_at_offset (FlAccessibleTextField *self, gint offset, gint *start_offset, gint *end_offset) |
static gchar * | get_word_at_offset (FlAccessibleTextField *self, gint offset, gint *start_offset, gint *end_offset) |
static gchar * | get_sentence_at_offset (FlAccessibleTextField *self, gint offset, gint *start_offset, gint *end_offset) |
static gchar * | get_line_at_offset (FlAccessibleTextField *self, gint offset, gint *start_offset, gint *end_offset) |
static gchar * | get_paragraph_at_offset (FlAccessibleTextField *self, gint offset, gint *start_offset, gint *end_offset) |
static void | perform_set_text_action (FlAccessibleTextField *self, const char *text) |
static void | perform_set_selection_action (FlAccessibleTextField *self, gint base, gint extent) |
static void | fl_accessible_text_field_dispose (GObject *object) |
static void | fl_accessible_text_field_set_value (FlAccessibleNode *node, const gchar *value) |
static void | fl_accessible_text_field_set_text_selection (FlAccessibleNode *node, gint base, gint extent) |
static void | fl_accessible_text_field_set_text_direction (FlAccessibleNode *node, FlutterTextDirection direction) |
void | fl_accessible_text_field_perform_action (FlAccessibleNode *self, FlutterSemanticsAction action, GBytes *data) |
static gint | fl_accessible_text_field_get_character_count (AtkText *text) |
static gchar * | fl_accessible_text_field_get_text (AtkText *text, gint start_offset, gint end_offset) |
static gchar * | fl_accessible_text_field_get_string_at_offset (AtkText *text, gint offset, AtkTextGranularity granularity, gint *start_offset, gint *end_offset) |
static gchar * | fl_accessible_text_field_get_text_at_offset (AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset) |
static gint | fl_accessible_text_field_get_caret_offset (AtkText *text) |
static gboolean | fl_accessible_text_field_set_caret_offset (AtkText *text, gint offset) |
static gint | fl_accessible_text_field_get_n_selections (AtkText *text) |
static gchar * | fl_accessible_text_field_get_selection (AtkText *text, gint selection_num, gint *start_offset, gint *end_offset) |
static gboolean | fl_accessible_text_field_add_selection (AtkText *text, gint start_offset, gint end_offset) |
static gboolean | fl_accessible_text_field_remove_selection (AtkText *text, gint selection_num) |
static gboolean | fl_accessible_text_field_set_selection (AtkText *text, gint selection_num, gint start_offset, gint end_offset) |
static void | fl_accessible_text_field_set_text_contents (AtkEditableText *editable_text, const gchar *string) |
static void | fl_accessible_text_field_insert_text (AtkEditableText *editable_text, const gchar *string, gint length, gint *position) |
static void | fl_accessible_node_delete_text (AtkEditableText *editable_text, gint start_pos, gint end_pos) |
static void | fl_accessible_text_field_copy_text (AtkEditableText *editable_text, gint start_pos, gint end_pos) |
static void | fl_accessible_text_field_cut_text (AtkEditableText *editable_text, gint start_pos, gint end_pos) |
static void | fl_accessible_text_field_paste_text (AtkEditableText *editable_text, gint position) |
static void | fl_accessible_text_field_class_init (FlAccessibleTextFieldClass *klass) |
static void | fl_accessible_text_field_init (FlAccessibleTextField *self) |
FlAccessibleNode * | fl_accessible_text_field_new (FlEngine *engine, int32_t id) |
Variables | |
glong | start |
glong glong | end |
typedef bool(* FlTextBoundaryCallback) (const PangoLogAttr *attr) |
Definition at line 16 of file fl_accessible_text_field.cc.
|
static |
Definition at line 59 of file fl_accessible_text_field.cc.
References get_pango_context().
Referenced by get_line_at_offset(), get_paragraph_at_offset(), and get_string_at_offset().
|
static |
Definition at line 581 of file fl_accessible_text_field.cc.
References fl_accessible_node_delete_text(), fl_accessible_text_field_copy_text(), fl_accessible_text_field_cut_text(), fl_accessible_text_field_insert_text(), fl_accessible_text_field_paste_text(), and fl_accessible_text_field_set_text_contents().
|
static |
Definition at line 502 of file fl_accessible_text_field.cc.
References perform_set_selection_action(), and perform_set_text_action().
Referenced by fl_accessible_editable_text_iface_init().
|
static |
Definition at line 431 of file fl_accessible_text_field.cc.
References perform_set_selection_action().
Referenced by fl_accessible_text_iface_init().
|
static |
|
static |
Definition at line 515 of file fl_accessible_text_field.cc.
References fl_accessible_node_perform_action(), and perform_set_selection_action().
Referenced by fl_accessible_editable_text_iface_init().
|
static |
Definition at line 528 of file fl_accessible_text_field.cc.
References fl_accessible_node_perform_action(), and perform_set_selection_action().
Referenced by fl_accessible_editable_text_iface_init().
|
static |
Definition at line 215 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_field_class_init().
|
static |
Definition at line 376 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 299 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 394 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 406 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 317 of file fl_accessible_text_field.cc.
References get_char_at_offset(), get_line_at_offset(), get_paragraph_at_offset(), get_sentence_at_offset(), and get_word_at_offset().
Referenced by fl_accessible_text_field_get_text_at_offset(), and fl_accessible_text_iface_init().
|
static |
Definition at line 307 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 343 of file fl_accessible_text_field.cc.
References fl_accessible_text_field_get_string_at_offset().
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 592 of file fl_accessible_text_field.cc.
|
static |
Definition at line 487 of file fl_accessible_text_field.cc.
References length, perform_set_selection_action(), and perform_set_text_action().
Referenced by fl_accessible_editable_text_iface_init().
FlAccessibleNode* fl_accessible_text_field_new | ( | FlEngine * | engine, |
int32_t | id | ||
) |
fl_accessible_text_field_new: @engine: the #FlEngine this node came from. @id: the semantics node ID this object represents.
Creates a new accessibility object that exposes an editable Flutter text field to ATK.
Returns: a new #FlAccessibleNode.
Definition at line 618 of file fl_accessible_text_field.cc.
Referenced by create_node(), and TEST().
|
static |
Definition at line 541 of file fl_accessible_text_field.cc.
References fl_accessible_node_perform_action(), and perform_set_selection_action().
Referenced by fl_accessible_editable_text_iface_init().
void fl_accessible_text_field_perform_action | ( | FlAccessibleNode * | self, |
FlutterSemanticsAction | action, | ||
GBytes * | data | ||
) |
Definition at line 272 of file fl_accessible_text_field.cc.
References fl_message_codec_encode_message(), fl_standard_message_codec_new(), and fl_value_new_bool().
Referenced by fl_accessible_text_field_class_init().
|
static |
Definition at line 446 of file fl_accessible_text_field.cc.
References perform_set_selection_action().
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 384 of file fl_accessible_text_field.cc.
References perform_set_selection_action().
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 461 of file fl_accessible_text_field.cc.
References perform_set_selection_action().
Referenced by fl_accessible_text_iface_init().
|
static |
Definition at line 477 of file fl_accessible_text_field.cc.
References perform_set_text_action().
Referenced by fl_accessible_editable_text_iface_init().
|
static |
Definition at line 262 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_field_class_init().
|
static |
Definition at line 237 of file fl_accessible_text_field.cc.
Referenced by fl_accessible_text_field_class_init().
|
static |
Definition at line 224 of file fl_accessible_text_field.cc.
References value.
Referenced by fl_accessible_text_field_class_init().
|
static |
Definition at line 565 of file fl_accessible_text_field.cc.
References fl_accessible_text_field_add_selection(), fl_accessible_text_field_get_caret_offset(), fl_accessible_text_field_get_character_count(), fl_accessible_text_field_get_n_selections(), fl_accessible_text_field_get_selection(), fl_accessible_text_field_get_string_at_offset(), fl_accessible_text_field_get_text(), fl_accessible_text_field_get_text_at_offset(), fl_accessible_text_field_remove_selection(), fl_accessible_text_field_set_caret_offset(), and fl_accessible_text_field_set_selection().
G_DEFINE_TYPE_WITH_CODE | ( | FlAccessibleTextField | , |
fl_accessible_text_field | , | ||
FL_TYPE_ACCESSIBLE_NODE | , | ||
G_IMPLEMENT_INTERFACE(ATK_TYPE_EDITABLE_TEXT, fl_accessible_editable_text_iface_init) | |||
) |
|
static |
Definition at line 96 of file fl_accessible_text_field.cc.
References get_string_at_offset().
Referenced by fl_accessible_text_field_get_string_at_offset().
|
static |
Definition at line 129 of file fl_accessible_text_field.cc.
References create_pango_layout().
Referenced by fl_accessible_text_field_get_string_at_offset().
|
static |
|
static |
Definition at line 155 of file fl_accessible_text_field.cc.
References create_pango_layout(), end, i, and start.
Referenced by fl_accessible_text_field_get_string_at_offset().
|
static |
Definition at line 118 of file fl_accessible_text_field.cc.
References get_string_at_offset().
Referenced by fl_accessible_text_field_get_string_at_offset().
|
static |
Definition at line 66 of file fl_accessible_text_field.cc.
References create_pango_layout(), end, and start.
Referenced by get_char_at_offset(), get_sentence_at_offset(), and get_word_at_offset().
|
static |
Definition at line 107 of file fl_accessible_text_field.cc.
References get_string_at_offset().
Referenced by fl_accessible_text_field_get_string_at_offset().
if | ( | end | = = -1 | ) |
Definition at line 42 of file fl_accessible_text_field.cc.
Referenced by fl_keyboard_manager_init().
|
static |
Definition at line 199 of file fl_accessible_text_field.cc.
References fl_accessible_node_perform_action(), fl_message_codec_encode_message(), fl_standard_message_codec_new(), fl_value_new_int(), fl_value_new_map(), fl_value_set_string_take(), and value.
Referenced by fl_accessible_node_delete_text(), fl_accessible_text_field_add_selection(), fl_accessible_text_field_copy_text(), fl_accessible_text_field_cut_text(), fl_accessible_text_field_insert_text(), fl_accessible_text_field_paste_text(), fl_accessible_text_field_remove_selection(), fl_accessible_text_field_set_caret_offset(), and fl_accessible_text_field_set_selection().
|
static |
Definition at line 188 of file fl_accessible_text_field.cc.
References fl_accessible_node_perform_action(), fl_message_codec_encode_message(), fl_standard_message_codec_new(), fl_value_new_string(), and value.
Referenced by fl_accessible_node_delete_text(), fl_accessible_text_field_insert_text(), and fl_accessible_text_field_set_text_contents().
glong glong end |
Definition at line 40 of file fl_accessible_text_field.cc.
Referenced by flutter::TextInputModel::Delete(), flutter::TextInputModel::DeleteSurrounding(), fl_accessible_text_field_get_selection(), get_paragraph_at_offset(), get_string_at_offset(), if(), flutter::TextInputModel::MoveCursorForward(), and TEST().
glong start |
Definition at line 39 of file fl_accessible_text_field.cc.
Referenced by flutter::TextInputModel::Backspace(), flutter::TextInputModel::DeleteSurrounding(), fl_accessible_text_field_get_selection(), get_paragraph_at_offset(), get_string_at_offset(), flutter::TextInputModel::MoveCursorBack(), and TEST().