#include <gtk/gtk.h>#include "flutter/shell/platform/linux/fl_key_event.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 * | fl_text_input_handler_get_im_context (FlTextInputHandler *handler) |
| void | fl_text_input_handler_set_widget (FlTextInputHandler *handler, GtkWidget *widget) |
| GtkWidget * | fl_text_input_handler_get_widget (FlTextInputHandler *handler) |
| 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 key event.
Returns: TRUE if the event was used.
Definition at line 477 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 handle_key_event(), and send_key_event().
| GtkIMContext* fl_text_input_handler_get_im_context | ( | FlTextInputHandler * | handler | ) |
fl_text_input_handler_get_im_context: @handler: an #FlTextInputHandler.
Get the IM context that is being used. Provided for testing purposes.
Returns: a #GtkIMContext.
Definition at line 459 of file fl_text_input_handler.cc.
Referenced by TEST().
| GtkWidget* fl_text_input_handler_get_widget | ( | FlTextInputHandler * | handler | ) |
fl_text_input_handler_get_widget: @handler: an #FlTextInputHandler.
Get the widget that has input focus.
Returns: a #GtkWidget or NULL if none active.
Definition at line 472 of file fl_text_input_handler.cc.
Referenced by setup_keyboard().
| FlTextInputHandler* fl_text_input_handler_new | ( | FlBinaryMessenger * | messenger | ) |
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.
Creates a new handler that implements SystemChannels.textInput from the Flutter services library.
Returns: a new #FlTextInputHandler.
Definition at line 422 of file fl_text_input_handler.cc.
References fl_text_input_channel_new(), im_commit_cb(), im_delete_surrounding_cb(), im_preedit_changed_cb(), im_preedit_end_cb(), im_preedit_start_cb(), im_retrieve_surrounding_cb(), and text_input_vtable.
Referenced by setup_keyboard(), and TEST().
| void fl_text_input_handler_set_widget | ( | FlTextInputHandler * | handler, |
| GtkWidget * | widget | ||
| ) |
fl_text_input_handler_set_widget: @handler: an #FlTextInputHandler. @widget: the widget with keyboard focus.
Set the widget that has input focus.
Definition at line 464 of file fl_text_input_handler.cc.
Referenced by fl_view_focus_in_event(), and setup_keyboard().
| G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlTextInputHandler | , |
| fl_text_input_handler | , | ||
| FL | , | ||
| TEXT_INPUT_HANDLER | , | ||
| GObject | |||
| ) |