#include "flutter/shell/platform/linux/testing/mock_im_context.h"
Go to the source code of this file.
|
| G_DECLARE_FINAL_TYPE (FlMockIMContext, fl_mock_im_context, FL, MOCK_IM_CONTEXT, GtkIMContext) struct _FlMockIMContext |
|
static void | fl_mock_im_context_set_client_window (GtkIMContext *context, GdkWindow *window) |
|
static void | fl_mock_im_context_get_preedit_string (GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos) |
|
static gboolean | fl_mock_im_context_filter_keypress (GtkIMContext *context, GdkEventKey *event) |
|
static void | fl_mock_im_context_focus_in (GtkIMContext *context) |
|
static void | fl_mock_im_context_focus_out (GtkIMContext *context) |
|
static void | fl_mock_im_context_reset (GtkIMContext *context) |
|
static void | fl_mock_im_context_set_cursor_location (GtkIMContext *context, GdkRectangle *area) |
|
static void | fl_mock_im_context_set_use_preedit (GtkIMContext *context, gboolean use_preedit) |
|
static void | fl_mock_im_context_set_surrounding (GtkIMContext *context, const gchar *text, gint len, gint cursor_index) |
|
static gboolean | fl_mock_im_context_get_surrounding (GtkIMContext *context, gchar **text, gint *cursor_index) |
|
static void | fl_mock_im_context_class_init (FlMockIMContextClass *klass) |
|
static void | fl_mock_im_context_init (FlMockIMContext *self) |
|
static GtkIMContext * | fl_mock_im_context_new (MockIMContext *mock) |
|
◆ fl_mock_im_context_class_init()
static void fl_mock_im_context_class_init |
( |
FlMockIMContextClass * |
klass | ) |
|
|
static |
Definition at line 86 of file mock_im_context.cc.
86 {
87 GtkIMContextClass* im_context_class = GTK_IM_CONTEXT_CLASS(klass);
94 im_context_class->set_cursor_location =
99}
static void fl_mock_im_context_set_use_preedit(GtkIMContext *context, gboolean use_preedit)
static gboolean fl_mock_im_context_filter_keypress(GtkIMContext *context, GdkEventKey *event)
static void fl_mock_im_context_focus_in(GtkIMContext *context)
static void fl_mock_im_context_get_preedit_string(GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos)
static void fl_mock_im_context_focus_out(GtkIMContext *context)
static gboolean fl_mock_im_context_get_surrounding(GtkIMContext *context, gchar **text, gint *cursor_index)
static void fl_mock_im_context_set_client_window(GtkIMContext *context, GdkWindow *window)
static void fl_mock_im_context_set_surrounding(GtkIMContext *context, const gchar *text, gint len, gint cursor_index)
static void fl_mock_im_context_set_cursor_location(GtkIMContext *context, GdkRectangle *area)
static void fl_mock_im_context_reset(GtkIMContext *context)
◆ fl_mock_im_context_filter_keypress()
static gboolean fl_mock_im_context_filter_keypress |
( |
GtkIMContext * |
context, |
|
|
GdkEventKey * |
event |
|
) |
| |
|
static |
Definition at line 37 of file mock_im_context.cc.
38 {
39 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
40 return self->mock->gtk_im_context_filter_keypress(context,
event);
41}
◆ fl_mock_im_context_focus_in()
static void fl_mock_im_context_focus_in |
( |
GtkIMContext * |
context | ) |
|
|
static |
Definition at line 43 of file mock_im_context.cc.
43 {
44 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
45 self->mock->gtk_im_context_focus_in(context);
46}
◆ fl_mock_im_context_focus_out()
static void fl_mock_im_context_focus_out |
( |
GtkIMContext * |
context | ) |
|
|
static |
Definition at line 48 of file mock_im_context.cc.
48 {
49 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
50 self->mock->gtk_im_context_focus_out(context);
51}
◆ fl_mock_im_context_get_preedit_string()
static void fl_mock_im_context_get_preedit_string |
( |
GtkIMContext * |
context, |
|
|
gchar ** |
str, |
|
|
PangoAttrList ** |
attrs, |
|
|
gint * |
cursor_pos |
|
) |
| |
|
static |
Definition at line 28 of file mock_im_context.cc.
31 {
32 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
33 self->mock->gtk_im_context_get_preedit_string(context, str, attrs,
34 cursor_pos);
35}
◆ fl_mock_im_context_get_surrounding()
static gboolean fl_mock_im_context_get_surrounding |
( |
GtkIMContext * |
context, |
|
|
gchar ** |
text, |
|
|
gint * |
cursor_index |
|
) |
| |
|
static |
Definition at line 78 of file mock_im_context.cc.
80 {
81 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
82 return self->mock->gtk_im_context_get_surrounding(context,
text,
83 cursor_index);
84}
◆ fl_mock_im_context_init()
static void fl_mock_im_context_init |
( |
FlMockIMContext * |
self | ) |
|
|
static |
◆ fl_mock_im_context_new()
static GtkIMContext * fl_mock_im_context_new |
( |
MockIMContext * |
mock | ) |
|
|
static |
Definition at line 103 of file mock_im_context.cc.
103 {
104 FlMockIMContext*
self =
105 FL_MOCK_IM_CONTEXT(g_object_new(fl_mock_im_context_get_type(), nullptr));
107 return GTK_IM_CONTEXT(
self);
108}
◆ fl_mock_im_context_reset()
static void fl_mock_im_context_reset |
( |
GtkIMContext * |
context | ) |
|
|
static |
Definition at line 53 of file mock_im_context.cc.
53 {
54 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
55 self->mock->gtk_im_context_reset(context);
56}
◆ fl_mock_im_context_set_client_window()
static void fl_mock_im_context_set_client_window |
( |
GtkIMContext * |
context, |
|
|
GdkWindow * |
window |
|
) |
| |
|
static |
Definition at line 22 of file mock_im_context.cc.
23 {
24 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
25 self->mock->gtk_im_context_set_client_window(context,
window);
26}
◆ fl_mock_im_context_set_cursor_location()
static void fl_mock_im_context_set_cursor_location |
( |
GtkIMContext * |
context, |
|
|
GdkRectangle * |
area |
|
) |
| |
|
static |
Definition at line 58 of file mock_im_context.cc.
59 {
60 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
61 self->mock->gtk_im_context_set_cursor_location(context, area);
62}
◆ fl_mock_im_context_set_surrounding()
static void fl_mock_im_context_set_surrounding |
( |
GtkIMContext * |
context, |
|
|
const gchar * |
text, |
|
|
gint |
len, |
|
|
gint |
cursor_index |
|
) |
| |
|
static |
Definition at line 70 of file mock_im_context.cc.
73 {
74 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
75 self->mock->gtk_im_context_set_surrounding(context,
text,
len, cursor_index);
76}
◆ fl_mock_im_context_set_use_preedit()
static void fl_mock_im_context_set_use_preedit |
( |
GtkIMContext * |
context, |
|
|
gboolean |
use_preedit |
|
) |
| |
|
static |
Definition at line 64 of file mock_im_context.cc.
65 {
66 FlMockIMContext*
self = FL_MOCK_IM_CONTEXT(context);
67 self->mock->gtk_im_context_set_use_preedit(context, use_preedit);
68}
◆ G_DECLARE_FINAL_TYPE()
G_DECLARE_FINAL_TYPE |
( |
FlMockIMContext |
, |
|
|
fl_mock_im_context |
, |
|
|
FL |
, |
|
|
MOCK_IM_CONTEXT |
, |
|
|
GtkIMContext |
|
|
) |
| |