#include "flutter/shell/platform/linux/fl_key_event.h"
Go to the source code of this file.
Classes | |
struct | _FlKeyEvent |
Functions | |
FlKeyEvent * | fl_key_event_new (guint32 time, gboolean is_press, guint16 keycode, guint keyval, GdkModifierType state, guint8 group) |
FlKeyEvent * | fl_key_event_new_from_gdk_event (GdkEvent *event) |
guint32 | fl_key_event_get_time (FlKeyEvent *self) |
gboolean | fl_key_event_get_is_press (FlKeyEvent *self) |
guint16 | fl_key_event_get_keycode (FlKeyEvent *self) |
guint | fl_key_event_get_keyval (FlKeyEvent *self) |
GdkModifierType | fl_key_event_get_state (FlKeyEvent *self) |
guint8 | fl_key_event_get_group (FlKeyEvent *self) |
GdkEvent * | fl_key_event_get_origin (FlKeyEvent *self) |
uint64_t | fl_key_event_hash (FlKeyEvent *self) |
static void | fl_key_event_dispose (GObject *object) |
static void | fl_key_event_class_init (FlKeyEventClass *klass) |
static void | fl_key_event_init (FlKeyEvent *self) |
|
static |
Definition at line 136 of file fl_key_event.cc.
References fl_key_event_dispose().
|
static |
guint8 fl_key_event_get_group | ( | FlKeyEvent * | self | ) |
Definition at line 104 of file fl_key_event.cc.
Referenced by get_logical_key_from_layout(), and guarantee_layout().
gboolean fl_key_event_get_is_press | ( | FlKeyEvent * | self | ) |
Definition at line 84 of file fl_key_event.cc.
Referenced by fl_key_channel_responder_handle_event(), fl_key_embedder_responder_handle_event_impl(), and fl_text_input_handler_filter_keypress_default().
guint16 fl_key_event_get_keycode | ( | FlKeyEvent * | self | ) |
Definition at line 89 of file fl_key_event.cc.
Referenced by event_to_physical_key(), fl_key_channel_responder_handle_event(), get_logical_key_from_layout(), and guarantee_layout().
guint fl_key_event_get_keyval | ( | FlKeyEvent * | self | ) |
Definition at line 94 of file fl_key_event.cc.
Referenced by event_to_character(), event_to_logical_key(), fl_key_channel_responder_handle_event(), and fl_text_input_handler_filter_keypress_default().
GdkEvent* fl_key_event_get_origin | ( | FlKeyEvent * | self | ) |
Definition at line 109 of file fl_key_event.cc.
Referenced by fl_text_input_handler_filter_keypress_default(), and fl_view_keyboard_delegate_iface_init().
GdkModifierType fl_key_event_get_state | ( | FlKeyEvent * | self | ) |
Definition at line 99 of file fl_key_event.cc.
Referenced by fl_key_channel_responder_handle_event(), fl_key_embedder_responder_handle_event_impl(), and fl_text_input_handler_filter_keypress_default().
guint32 fl_key_event_get_time | ( | FlKeyEvent * | self | ) |
Definition at line 79 of file fl_key_event.cc.
Referenced by event_to_timestamp().
uint64_t fl_key_event_hash | ( | FlKeyEvent * | event | ) |
fl_key_event_hash: @event: an #FlKeyEvent.
Calculates a unique ID for a given FlKeyEvent object to use for identification of responses from the framework.
Returns: a hash code.
Definition at line 114 of file fl_key_event.cc.
References type.
Referenced by fl_keyboard_handler_handle_event(), and fl_keyboard_pending_event_new().
|
static |
Definition at line 140 of file fl_key_event.cc.
FlKeyEvent* fl_key_event_new | ( | guint32 | time, |
gboolean | is_press, | ||
guint16 | keycode, | ||
guint | keyval, | ||
GdkModifierType | state, | ||
guint8 | group | ||
) |
FlKeyEvent: A struct that stores information from GdkEvent.
This is a class only used within the GTK embedding, created by FlView and consumed by FlKeyboardHandler. It is not sent to the embedder.
This object contains information from GdkEvent as well as an origin event object, so that Flutter can create an event object in unit tests even after migrating to GDK 4.0 which stops supporting creating GdkEvent.
Definition at line 34 of file fl_key_event.cc.
References state.
Referenced by TEST(), and test_lock_event().
FlKeyEvent* fl_key_event_new_from_gdk_event | ( | GdkEvent * | event | ) |
fl_key_event_new_from_gdk_event: @event: the #GdkEvent this #FlKeyEvent is based on.
Create a new #FlKeyEvent based on a #GdkEvent.
Returns: a new #FlKeyEvent.
Definition at line 53 of file fl_key_event.cc.
References event, state, and type.
Referenced by fl_view_key_press_event(), fl_view_key_release_event(), and send_key_event().