#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.
Functions | |
G_BEGIN_DECLS | G_DECLARE_FINAL_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 476 of file fl_text_input_handler.cc.
References fl_key_event_get_is_press(), fl_key_event_get_keyval(), fl_key_event_get_origin(), fl_key_event_get_state(), FL_TEXT_INPUT_TYPE_MULTILINE, kClientIdUnset, kNewlineInputAction, perform_action(), TRUE, update_editing_state(), and update_editing_state_with_delta().
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 | ||
) |
FlTextInputHandler:
#FlTextInputHandler is a handler that implements the shell side of SystemChannels.textInput from the Flutter services library. 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 455 of file fl_text_input_handler.cc.
References fl_text_input_channel_new(), init_im_context(), and text_input_vtable.
Referenced by init_keyboard(), and TEST().
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlTextInputHandler | , |
fl_text_input_handler | , | ||
FL | , | ||
TEXT_INPUT_HANDLER | , | ||
GObject | |||
) |