#include <gtk/gtk.h>
#include "flutter/shell/platform/linux/fl_key_event.h"
#include "flutter/shell/platform/linux/fl_text_input_view_delegate.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
Go to the source code of this file.
Classes | |
struct | _FlTextInputHandlerClass |
Functions | |
G_BEGIN_DECLS | G_DECLARE_DERIVABLE_TYPE (FlTextInputHandler, fl_text_input_handler, FL, TEXT_INPUT_HANDLER, GObject) |
FlTextInputHandler * | fl_text_input_handler_new (FlBinaryMessenger *messenger, GtkIMContext *im_context, FlTextInputViewDelegate *view_delegate) |
gboolean | fl_text_input_handler_filter_keypress (FlTextInputHandler *handler, FlKeyEvent *event) |
gboolean fl_text_input_handler_filter_keypress | ( | FlTextInputHandler * | handler, |
FlKeyEvent * | event | ||
) |
fl_text_input_handler_filter_keypress @handler: an #FlTextInputHandler. @event: a #FlKeyEvent
Process a Gdk key event.
Returns: TRUE if the event was used.
Definition at line 778 of file fl_text_input_handler.cc.
References event.
Referenced by fl_view_keyboard_delegate_iface_init(), and send_key_event().
FlTextInputHandler* fl_text_input_handler_new | ( | FlBinaryMessenger * | messenger, |
GtkIMContext * | im_context, | ||
FlTextInputViewDelegate * | view_delegate | ||
) |
fl_text_input_handler_new: @messenger: an #FlBinaryMessenger. @im_context: (allow-none): a #GtkIMContext. @view_delegate: an #FlTextInputViewDelegate.
Creates a new handler that implements SystemChannels.textInput from the Flutter services library.
Returns: a new #FlTextInputHandler.
Definition at line 747 of file fl_text_input_handler.cc.
References fl_json_method_codec_new(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), init_im_context(), kChannelName, method_call_cb(), and priv.
Referenced by init_keyboard(), and TEST().
G_BEGIN_DECLS G_DECLARE_DERIVABLE_TYPE | ( | FlTextInputHandler | , |
fl_text_input_handler | , | ||
FL | , | ||
TEXT_INPUT_HANDLER | , | ||
GObject | |||
) |