#include <stdint.h>
#include <gdk/gdk.h>
Go to the source code of this file.
Functions | |
G_DECLARE_FINAL_TYPE (FlKeyEvent, fl_key_event, FL, KEY_EVENT, GObject) | |
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 *event) |
gboolean | fl_key_event_get_is_press (FlKeyEvent *event) |
guint16 | fl_key_event_get_keycode (FlKeyEvent *event) |
guint | fl_key_event_get_keyval (FlKeyEvent *event) |
GdkModifierType | fl_key_event_get_state (FlKeyEvent *event) |
guint8 | fl_key_event_get_group (FlKeyEvent *event) |
GdkEvent * | fl_key_event_get_origin (FlKeyEvent *event) |
uint64_t | fl_key_event_hash (FlKeyEvent *event) |
guint8 fl_key_event_get_group | ( | FlKeyEvent * | event | ) |
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 * | event | ) |
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 * | event | ) |
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 * | event | ) |
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 * | event | ) |
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 * | event | ) |
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 * | event | ) |
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().
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().
G_DECLARE_FINAL_TYPE | ( | FlKeyEvent | , |
fl_key_event | , | ||
FL | , | ||
KEY_EVENT | , | ||
GObject | |||
) |