Flutter Engine
fl_text_input_plugin.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_TEXT_INPUT_LINUX_FL_TEXT_INPUT_PLUGIN_H_
6 #define FLUTTER_SHELL_TEXT_INPUT_LINUX_FL_TEXT_INPUT_PLUGIN_H_
7 
8 #include <gdk/gdk.h>
9 
10 #include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
11 #include "flutter/shell/platform/linux/public/flutter_linux/fl_view.h"
12 
13 G_BEGIN_DECLS
14 
15 G_DECLARE_FINAL_TYPE(FlTextInputPlugin,
16  fl_text_input_plugin,
17  FL,
18  TEXT_INPUT_PLUGIN,
19  GObject);
20 
21 /**
22  * FlTextInputPlugin:
23  *
24  * #FlTextInputPlugin is a plugin that implements the shell side
25  * of SystemChannels.textInput from the Flutter services library.
26  */
27 
28 /**
29  * fl_text_input_plugin_new:
30  * @messenger: an #FlBinaryMessenger.
31  * @view: the #FlView with which the text input plugin is associated.
32  *
33  * Creates a new plugin that implements SystemChannels.textInput from the
34  * Flutter services library.
35  *
36  * Returns: a new #FlTextInputPlugin.
37  */
38 FlTextInputPlugin* fl_text_input_plugin_new(FlBinaryMessenger* messenger,
39  FlView* view);
40 
41 /**
42  * fl_text_input_plugin_filter_keypress
43  * @plugin: an #FlTextInputPlugin.
44  * @event: a #GdkEventKey
45  *
46  * Process a Gdk key event.
47  *
48  * Returns: %TRUE if the event was used.
49  */
50 gboolean fl_text_input_plugin_filter_keypress(FlTextInputPlugin* plugin,
51  GdkEventKey* event);
52 
53 G_END_DECLS
54 
55 #endif // FLUTTER_SHELL_TEXT_INPUT_LINUX_FL_TEXT_INPUT_PLUGIN_H_
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlTextInputPlugin, fl_text_input_plugin, FL, TEXT_INPUT_PLUGIN, GObject)
GdkEventButton * event
Definition: fl_view.cc:62
gboolean fl_text_input_plugin_filter_keypress(FlTextInputPlugin *plugin, GdkEventKey *event)
G_BEGIN_DECLS FL
FlTextInputPlugin * fl_text_input_plugin_new(FlBinaryMessenger *messenger, FlView *view)