5#include "flutter/shell/platform/linux/testing/mock_text_input_plugin.h"
14 fl_mock_text_input_plugin,
15 fl_text_input_plugin_get_type())
17static gboolean mock_text_input_plugin_filter_keypress(FlTextInputPlugin*
self,
19 FlMockTextInputPlugin* mock_self = FL_MOCK_TEXT_INPUT_PLUGIN(
self);
20 if (mock_self->filter_keypress) {
21 return mock_self->filter_keypress(
self,
event);
27 FlMockTextInputPluginClass* klass) {
28 FL_TEXT_INPUT_PLUGIN_CLASS(klass)->filter_keypress =
29 mock_text_input_plugin_filter_keypress;
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;
static void fl_mock_text_input_plugin_init(FlMockTextInputPlugin *self)
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
static void fl_mock_text_input_plugin_class_init(FlMockTextInputPluginClass *klass)
FlMockTextInputPlugin * fl_mock_text_input_plugin_new(gboolean(*filter_keypress)(FlTextInputPlugin *self, FlKeyEvent *event))
gboolean(* filter_keypress)(FlTextInputPlugin *self, FlKeyEvent *event)
FlTextInputPlugin parent_instance