Flutter Engine
The Flutter Engine
Classes | Functions | Variables
mock_text_input_plugin.cc File Reference
#include "flutter/shell/platform/linux/testing/mock_text_input_plugin.h"

Go to the source code of this file.

Classes

struct  _FlMockTextInputPlugin
 

Functions

 G_DEFINE_TYPE (FlMockTextInputPlugin, fl_mock_text_input_plugin, fl_text_input_plugin_get_type()) static gboolean mock_text_input_plugin_filter_keypress(FlTextInputPlugin *self
 
 if (mock_self->filter_keypress)
 
static void fl_mock_text_input_plugin_class_init (FlMockTextInputPluginClass *klass)
 
static void fl_mock_text_input_plugin_init (FlMockTextInputPlugin *self)
 
FlMockTextInputPlugin * fl_mock_text_input_plugin_new (gboolean(*filter_keypress)(FlTextInputPlugin *self, FlKeyEvent *event))
 

Variables

FlKeyEventevent
 
return FALSE
 

Function Documentation

◆ fl_mock_text_input_plugin_class_init()

static void fl_mock_text_input_plugin_class_init ( FlMockTextInputPluginClass *  klass)
static

Definition at line 26 of file mock_text_input_plugin.cc.

27 {
28 FL_TEXT_INPUT_PLUGIN_CLASS(klass)->filter_keypress =
29 mock_text_input_plugin_filter_keypress;
30}

◆ fl_mock_text_input_plugin_init()

static void fl_mock_text_input_plugin_init ( FlMockTextInputPlugin *  self)
static

Definition at line 32 of file mock_text_input_plugin.cc.

32{}

◆ fl_mock_text_input_plugin_new()

FlMockTextInputPlugin * fl_mock_text_input_plugin_new ( gboolean(*)(FlTextInputPlugin *self, FlKeyEvent *event filter_keypress)

Definition at line 35 of file mock_text_input_plugin.cc.

36 {
37 FlMockTextInputPlugin* self = FL_MOCK_TEXT_INPUT_PLUGIN(
38 g_object_new(fl_mock_text_input_plugin_get_type(), nullptr));
39 self->filter_keypress = filter_keypress;
40 return self;
41}

◆ G_DEFINE_TYPE()

G_DEFINE_TYPE ( FlMockTextInputPlugin  ,
fl_mock_text_input_plugin  ,
fl_text_input_plugin_get_type()   
)

◆ if()

if ( mock_self->  filter_keypress)

Definition at line 20 of file mock_text_input_plugin.cc.

20 {
21 return mock_self->filter_keypress(self, event);
22 }
FlKeyEvent * event

Variable Documentation

◆ event

FlKeyEvent* event
Initial value:
{
FlMockTextInputPlugin* mock_self = FL_MOCK_TEXT_INPUT_PLUGIN(self)

Definition at line 18 of file mock_text_input_plugin.cc.

◆ FALSE

return FALSE

Definition at line 23 of file mock_text_input_plugin.cc.