| Flutter Linux Embedder |

fl_text_input_handler.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_PLATFORM_LINUX_FL_TEXT_INPUT_HANDLER_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXT_INPUT_HANDLER_H_
7
8 #include <gtk/gtk.h>
9
10 #include "flutter/shell/platform/linux/fl_key_event.h"
11 #include "flutter/shell/platform/linux/fl_text_input_view_delegate.h"
12 #include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
13
14 G_BEGIN_DECLS
15
16 G_DECLARE_FINAL_TYPE(FlTextInputHandler,
17 fl_text_input_handler,
18 FL,
19 TEXT_INPUT_HANDLER,
20 GObject);
21
22 /**
23 * FlTextInputHandler:
24 *
25 * #FlTextInputHandler is a handler that implements the shell side
26 * of SystemChannels.textInput from the Flutter services library.
27 */
28
29 /**
30 * fl_text_input_handler_new:
31 * @messenger: an #FlBinaryMessenger.
32 * @im_context: (allow-none): a #GtkIMContext.
33 * @view_delegate: an #FlTextInputViewDelegate.
34 *
35 * Creates a new handler that implements SystemChannels.textInput from the
36 * Flutter services library.
37 *
38 * Returns: a new #FlTextInputHandler.
39 */
40 FlTextInputHandler* fl_text_input_handler_new(
41 FlBinaryMessenger* messenger,
42 GtkIMContext* im_context,
43 FlTextInputViewDelegate* view_delegate);
44
45 /**
46 * fl_text_input_handler_filter_keypress
47 * @handler: an #FlTextInputHandler.
48 * @event: a #FlKeyEvent
49 *
50 * Process a Gdk key event.
51 *
52 * Returns: %TRUE if the event was used.
53 */
54 gboolean fl_text_input_handler_filter_keypress(FlTextInputHandler* handler,
55 FlKeyEvent* event);
56
57 G_END_DECLS
58
59 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXT_INPUT_HANDLER_H_
FL
FL
Definition: fl_binary_messenger.cc:27
fl_binary_messenger.h
fl_key_event.h
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlTextInputHandler, fl_text_input_handler, FL, TEXT_INPUT_HANDLER, GObject)
fl_text_input_handler_new
FlTextInputHandler * fl_text_input_handler_new(FlBinaryMessenger *messenger, GtkIMContext *im_context, FlTextInputViewDelegate *view_delegate)
Definition: fl_text_input_handler.cc:455
fl_text_input_handler_filter_keypress
gboolean fl_text_input_handler_filter_keypress(FlTextInputHandler *handler, FlKeyEvent *event)
Definition: fl_text_input_handler.cc:476
fl_text_input_view_delegate.h