#include "flutter/shell/platform/linux/testing/mock_text_input_view_delegate.h"
Go to the source code of this file.
|
| G_DECLARE_FINAL_TYPE (FlMockTextInputViewDelegate, fl_mock_text_input_view_delegate, FL, MOCK_TEXT_INPUT_VIEW_DELEGATE, GObject) struct _FlMockTextInputViewDelegate |
|
static FlTextInputViewDelegate * | fl_mock_text_input_view_delegate_new (MockTextInputViewDelegate *mock) |
|
static void | fl_mock_text_input_view_delegate_iface_init (FlTextInputViewDelegateInterface *iface) |
|
| G_DEFINE_TYPE_WITH_CODE (FlMockTextInputViewDelegate, fl_mock_text_input_view_delegate, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_text_input_view_delegate_get_type(), fl_mock_text_input_view_delegate_iface_init)) static void fl_mock_text_input_view_delegate_class_init(FlMockTextInputViewDelegateClass *klass) |
|
static void | fl_mock_text_input_view_delegate_translate_coordinates (FlTextInputViewDelegate *view_delegate, gint view_x, gint view_y, gint *window_x, gint *window_y) |
|
static void | fl_mock_text_input_view_delegate_init (FlMockTextInputViewDelegate *self) |
|
◆ fl_mock_text_input_view_delegate_iface_init()
static void fl_mock_text_input_view_delegate_iface_init |
( |
FlTextInputViewDelegateInterface * |
iface | ) |
|
|
static |
Definition at line 67 of file mock_text_input_view_delegate.cc.
68 {
69 iface->translate_coordinates =
71}
static void fl_mock_text_input_view_delegate_translate_coordinates(FlTextInputViewDelegate *view_delegate, gint view_x, gint view_y, gint *window_x, gint *window_y)
◆ fl_mock_text_input_view_delegate_init()
static void fl_mock_text_input_view_delegate_init |
( |
FlMockTextInputViewDelegate * |
self | ) |
|
|
static |
◆ fl_mock_text_input_view_delegate_new()
Definition at line 20 of file mock_text_input_view_delegate.cc.
21 {
22 FlMockTextInputViewDelegate*
self = FL_MOCK_TEXT_INPUT_VIEW_DELEGATE(
23 g_object_new(fl_mock_text_input_view_delegate_get_type(), nullptr));
25 return FL_TEXT_INPUT_VIEW_DELEGATE(
self);
26}
◆ fl_mock_text_input_view_delegate_translate_coordinates()
static void fl_mock_text_input_view_delegate_translate_coordinates |
( |
FlTextInputViewDelegate * |
view_delegate, |
|
|
gint |
view_x, |
|
|
gint |
view_y, |
|
|
gint * |
window_x, |
|
|
gint * |
window_y |
|
) |
| |
|
static |
Definition at line 54 of file mock_text_input_view_delegate.cc.
59 {
60 g_return_if_fail(FL_IS_MOCK_TEXT_INPUT_VIEW_DELEGATE(view_delegate));
61 FlMockTextInputViewDelegate*
self =
62 FL_MOCK_TEXT_INPUT_VIEW_DELEGATE(view_delegate);
63 self->mock->fl_text_input_view_delegate_translate_coordinates(
64 view_delegate, view_x, view_y, window_x, window_y);
65}
◆ G_DECLARE_FINAL_TYPE()
G_DECLARE_FINAL_TYPE |
( |
FlMockTextInputViewDelegate |
, |
|
|
fl_mock_text_input_view_delegate |
, |
|
|
FL |
, |
|
|
MOCK_TEXT_INPUT_VIEW_DELEGATE |
, |
|
|
GObject |
|
|
) |
| |
◆ G_DEFINE_TYPE_WITH_CODE()
G_DEFINE_TYPE_WITH_CODE |
( |
FlMockTextInputViewDelegate |
, |
|
|
fl_mock_text_input_view_delegate |
, |
|
|
G_TYPE_OBJECT |
, |
|
|
G_IMPLEMENT_INTERFACE(fl_text_input_view_delegate_get_type(), fl_mock_text_input_view_delegate_iface_init) |
|
|
) |
| |