#include <gdk/gdk.h>
Go to the source code of this file.
Classes | |
struct | _FlKeyEvent |
Typedefs | |
typedef struct _FlKeyEvent | FlKeyEvent |
Functions | |
FlKeyEvent * | fl_key_event_new_from_gdk_event (GdkEvent *event) |
void | fl_key_event_dispose (FlKeyEvent *event) |
FlKeyEvent * | fl_key_event_clone (const FlKeyEvent *source) |
typedef struct _FlKeyEvent FlKeyEvent |
FlKeyEvent: A struct that stores information from GdkEvent.
This is a class only used within the GTK embedding, created by FlView and consumed by FlKeyboardManager. 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.
FlKeyEvent* fl_key_event_clone | ( | const FlKeyEvent * | source | ) |
void fl_key_event_dispose | ( | FlKeyEvent * | event | ) |
fl_key_event_dispose: @event: the event to dispose.
Properly disposes the content of event and then the pointer.
Definition at line 32 of file fl_key_event.cc.
References event, and _FlKeyEvent::origin.
Referenced by fl_keyboard_pending_event_dispose(), fl_view_keyboard_delegate_iface_init(), and send_key_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. The event must be a #GdkEventKey, and will be destroyed by fl_key_event_dispose.
Create a new FlKeyEvent based on a #GdkEvent.
Returns: a new FlKeyEvent. Must be freed with fl_key_event_dispose.
Definition at line 7 of file fl_key_event.cc.
References event, result, state, and type.
Referenced by fl_view_key_press_event(), fl_view_key_release_event(), and send_key_event().