Flutter Engine
The Flutter Engine
Functions
mock_text_input_view_delegate.cc File Reference
#include "flutter/shell/platform/linux/testing/mock_text_input_view_delegate.h"

Go to the source code of this file.

Functions

 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)
 

Function Documentation

◆ 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

Definition at line 73 of file mock_text_input_view_delegate.cc.

74 {}

◆ fl_mock_text_input_view_delegate_new()

static FlTextInputViewDelegate * fl_mock_text_input_view_delegate_new ( MockTextInputViewDelegate mock)
static

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));
24 self->mock = mock;
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   
)

Definition at line 9 of file mock_text_input_view_delegate.cc.

◆ 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  
)

Definition at line 44 of file mock_text_input_view_delegate.cc.

52 {}