Flutter Engine
The Flutter Engine
|
#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.
|
static |
Definition at line 581 of file fl_accessible_text_field.cc.
|
static |
Definition at line 502 of file fl_accessible_text_field.cc.
|
static |
Definition at line 431 of file fl_accessible_text_field.cc.
|
static |
Definition at line 552 of file fl_accessible_text_field.cc.
|
static |
Definition at line 515 of file fl_accessible_text_field.cc.
|
static |
Definition at line 528 of file fl_accessible_text_field.cc.
|
static |
Definition at line 215 of file fl_accessible_text_field.cc.
|
static |
|
static |
|
static |
Definition at line 394 of file fl_accessible_text_field.cc.
|
static |
Definition at line 406 of file fl_accessible_text_field.cc.
|
static |
Definition at line 317 of file fl_accessible_text_field.cc.
|
static |
|
static |
Definition at line 343 of file fl_accessible_text_field.cc.
|
static |
Definition at line 592 of file fl_accessible_text_field.cc.
|
static |
Definition at line 487 of file fl_accessible_text_field.cc.
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.
|
static |
Definition at line 541 of file fl_accessible_text_field.cc.
void fl_accessible_text_field_perform_action | ( | FlAccessibleNode * | self, |
FlutterSemanticsAction | action, | ||
GBytes * | data | ||
) |
Definition at line 272 of file fl_accessible_text_field.cc.
|
static |
Definition at line 446 of file fl_accessible_text_field.cc.
|
static |
Definition at line 384 of file fl_accessible_text_field.cc.
|
static |
Definition at line 461 of file fl_accessible_text_field.cc.
|
static |
Definition at line 477 of file fl_accessible_text_field.cc.
|
static |
Definition at line 262 of file fl_accessible_text_field.cc.
|
static |
Definition at line 237 of file fl_accessible_text_field.cc.
|
static |
Definition at line 224 of file fl_accessible_text_field.cc.
|
static |
Definition at line 565 of file fl_accessible_text_field.cc.
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.
|
static |
Definition at line 129 of file fl_accessible_text_field.cc.
|
static |
Definition at line 49 of file fl_accessible_text_field.cc.
|
static |
Definition at line 155 of file fl_accessible_text_field.cc.
|
static |
Definition at line 118 of file fl_accessible_text_field.cc.
|
static |
Definition at line 66 of file fl_accessible_text_field.cc.
|
static |
Definition at line 107 of file fl_accessible_text_field.cc.
if | ( | end | = = -1 | ) |
Definition at line 42 of file fl_accessible_text_field.cc.
|
static |
Definition at line 199 of file fl_accessible_text_field.cc.
|
static |
Definition at line 188 of file fl_accessible_text_field.cc.
glong glong end |
Definition at line 40 of file fl_accessible_text_field.cc.
glong start |
Definition at line 39 of file fl_accessible_text_field.cc.