Flutter Engine
The Flutter Engine
|
#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 | ) |
Definition at line 39 of file fl_key_event.cc.
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.
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.