Flutter Engine
The Flutter Engine
|
#include "flutter/shell/platform/linux/public/flutter_linux/fl_view.h"
#include "flutter/shell/platform/linux/fl_view_private.h"
#include <atk/atk.h>
#include <gtk/gtk-a11y.h>
#include <cstring>
#include "flutter/shell/platform/linux/fl_accessible_node.h"
#include "flutter/shell/platform/linux/fl_backing_store_provider.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
#include "flutter/shell/platform/linux/fl_key_event.h"
#include "flutter/shell/platform/linux/fl_keyboard_manager.h"
#include "flutter/shell/platform/linux/fl_keyboard_view_delegate.h"
#include "flutter/shell/platform/linux/fl_mouse_cursor_plugin.h"
#include "flutter/shell/platform/linux/fl_platform_plugin.h"
#include "flutter/shell/platform/linux/fl_plugin_registrar_private.h"
#include "flutter/shell/platform/linux/fl_renderer_gdk.h"
#include "flutter/shell/platform/linux/fl_scrolling_manager.h"
#include "flutter/shell/platform/linux/fl_scrolling_view_delegate.h"
#include "flutter/shell/platform/linux/fl_socket_accessible.h"
#include "flutter/shell/platform/linux/fl_text_input_plugin.h"
#include "flutter/shell/platform/linux/fl_text_input_view_delegate.h"
#include "flutter/shell/platform/linux/fl_view_accessible.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h"
Go to the source code of this file.
Classes | |
struct | _FlView |
Enumerations | |
enum | { kPropFlutterProject = 1 , kPropLast } |
Functions | |
static void | fl_view_plugin_registry_iface_init (FlPluginRegistryInterface *iface) |
static void | fl_view_keyboard_delegate_iface_init (FlKeyboardViewDelegateInterface *iface) |
static void | fl_view_scrolling_delegate_iface_init (FlScrollingViewDelegateInterface *iface) |
static void | fl_view_text_input_delegate_iface_init (FlTextInputViewDelegateInterface *iface) |
G_DEFINE_TYPE_WITH_CODE (FlView, fl_view, GTK_TYPE_BOX, G_IMPLEMENT_INTERFACE(fl_plugin_registry_get_type(), fl_view_plugin_registry_iface_init) G_IMPLEMENT_INTERFACE(fl_keyboard_view_delegate_get_type(), fl_view_keyboard_delegate_iface_init) G_IMPLEMENT_INTERFACE(fl_scrolling_view_delegate_get_type(), fl_view_scrolling_delegate_iface_init) G_IMPLEMENT_INTERFACE(fl_text_input_view_delegate_get_type(), fl_view_text_input_delegate_iface_init)) static gboolean window_delete_event_cb(FlView *self) | |
static void | init_keyboard (FlView *self) |
static void | init_scrolling (FlView *self) |
static FlutterPointerDeviceKind | get_device_kind (GdkEvent *event) |
static gboolean | send_pointer_button_event (FlView *self, GdkEvent *event) |
static void | check_pointer_inside (FlView *self, GdkEvent *event) |
static void | handle_geometry_changed (FlView *self) |
static void | update_semantics_cb (FlEngine *engine, const FlutterSemanticsUpdate2 *update, gpointer user_data) |
static void | on_pre_engine_restart_cb (FlEngine *engine, gpointer user_data) |
static FlPluginRegistrar * | fl_view_get_registrar_for_plugin (FlPluginRegistry *registry, const gchar *name) |
static gboolean | button_press_event_cb (FlView *self, GdkEventButton *button_event) |
static gboolean | button_release_event_cb (FlView *self, GdkEventButton *button_event) |
static gboolean | scroll_event_cb (FlView *self, GdkEventScroll *event) |
static gboolean | motion_notify_event_cb (FlView *self, GdkEventMotion *motion_event) |
static gboolean | enter_notify_event_cb (FlView *self, GdkEventCrossing *crossing_event) |
static gboolean | leave_notify_event_cb (FlView *self, GdkEventCrossing *crossing_event) |
static void | keymap_keys_changed_cb (FlView *self) |
static void | gesture_rotation_begin_cb (FlView *self) |
static void | gesture_rotation_update_cb (FlView *self, gdouble rotation, gdouble delta) |
static void | gesture_rotation_end_cb (FlView *self) |
static void | gesture_zoom_begin_cb (FlView *self) |
static void | gesture_zoom_update_cb (FlView *self, gdouble scale) |
static void | gesture_zoom_end_cb (FlView *self) |
static gboolean | window_state_event_cb (FlView *self, GdkEvent *event) |
static GdkGLContext * | create_context_cb (FlView *self) |
static void | realize_cb (FlView *self) |
static gboolean | render_cb (FlView *self, GdkGLContext *context) |
static void | unrealize_cb (FlView *self) |
static void | size_allocate_cb (FlView *self) |
static void | fl_view_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
static void | fl_view_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
static void | fl_view_notify (GObject *object, GParamSpec *pspec) |
static void | fl_view_dispose (GObject *object) |
static gboolean | fl_view_key_press_event (GtkWidget *widget, GdkEventKey *event) |
static gboolean | fl_view_key_release_event (GtkWidget *widget, GdkEventKey *event) |
static void | fl_view_class_init (FlViewClass *klass) |
static void | fl_view_init (FlView *self) |
G_MODULE_EXPORT FlView * | fl_view_new (FlDartProject *project) |
G_MODULE_EXPORT FlEngine * | fl_view_get_engine (FlView *self) |
void | fl_view_redraw (FlView *self) |
GHashTable * | fl_view_get_keyboard_state (FlView *self) |
Variables | |
static constexpr int | kMicrosecondsPerMillisecond = 1000 |
anonymous enum |
|
static |
Definition at line 386 of file fl_view.cc.
|
static |
Definition at line 403 of file fl_view.cc.
|
static |
Definition at line 217 of file fl_view.cc.
|
static |
Definition at line 552 of file fl_view.cc.
|
static |
Definition at line 451 of file fl_view.cc.
|
static |
Definition at line 751 of file fl_view.cc.
|
static |
Definition at line 702 of file fl_view.cc.
G_MODULE_EXPORT FlEngine * fl_view_get_engine | ( | FlView * | view | ) |
fl_view_get_engine: @view: an #FlView.
Gets the engine being rendered in the view.
Returns: an #FlEngine.
Definition at line 835 of file fl_view.cc.
GHashTable * fl_view_get_keyboard_state | ( | FlView * | view | ) |
fl_view_get_keyboard_state: @view: an #FlView.
Returns the keyboard pressed state. The hash table contains one entry per pressed keys, mapping from the logical key to the physical key.*
Definition at line 845 of file fl_view.cc.
|
static |
Definition at line 674 of file fl_view.cc.
|
static |
Definition at line 279 of file fl_view.cc.
|
static |
Definition at line 774 of file fl_view.cc.
|
static |
Definition at line 734 of file fl_view.cc.
|
static |
Definition at line 743 of file fl_view.cc.
|
static |
Definition at line 294 of file fl_view.cc.
G_MODULE_EXPORT FlView * fl_view_new | ( | FlDartProject * | project | ) |
FlView:
#FlView is a GTK widget that is capable of displaying a Flutter application.
The following example shows how to set up a view in a GTK application: |[ FlDartProject *project = fl_dart_project_new (); FlView *view = fl_view_new (project); gtk_widget_show (GTK_WIDGET (view)); gtk_container_add (GTK_CONTAINER (parent), view);
FlBinaryMessenger *messenger = fl_engine_get_binary_messenger (fl_view_get_engine (view)); setup_channels_or_plugins (messenger); ]| fl_view_new: @project: The project to show.
Creates a widget to show Flutter application.
Returns: a new #FlView.
Definition at line 830 of file fl_view.cc.
|
static |
Definition at line 690 of file fl_view.cc.
|
static |
Definition at line 289 of file fl_view.cc.
void fl_view_redraw | ( | FlView * | view | ) |
fl_view_redraw: @view: an #FlView.
Indicate the view needs to redraw.
Definition at line 840 of file fl_view.cc.
|
static |
Definition at line 346 of file fl_view.cc.
|
static |
Definition at line 657 of file fl_view.cc.
|
static |
Definition at line 373 of file fl_view.cc.
G_DEFINE_TYPE_WITH_CODE | ( | FlView | , |
fl_view | , | ||
GTK_TYPE_BOX | , | ||
G_IMPLEMENT_INTERFACE(fl_plugin_registry_get_type(), fl_view_plugin_registry_iface_init) G_IMPLEMENT_INTERFACE(fl_keyboard_view_delegate_get_type(), fl_view_keyboard_delegate_iface_init) G_IMPLEMENT_INTERFACE(fl_scrolling_view_delegate_get_type(), fl_view_scrolling_delegate_iface_init) G_IMPLEMENT_INTERFACE(fl_text_input_view_delegate_get_type(), fl_view_text_input_delegate_iface_init) | |||
) |
Definition at line 91 of file fl_view.cc.
|
static |
Definition at line 504 of file fl_view.cc.
|
static |
Definition at line 515 of file fl_view.cc.
|
static |
Definition at line 508 of file fl_view.cc.
|
static |
Definition at line 519 of file fl_view.cc.
|
static |
Definition at line 527 of file fl_view.cc.
|
static |
Definition at line 523 of file fl_view.cc.
|
static |
Definition at line 135 of file fl_view.cc.
|
static |
Definition at line 235 of file fl_view.cc.
|
static |
Definition at line 112 of file fl_view.cc.
|
static |
Definition at line 129 of file fl_view.cc.
|
static |
Definition at line 496 of file fl_view.cc.
|
static |
Definition at line 465 of file fl_view.cc.
|
static |
Definition at line 421 of file fl_view.cc.
|
static |
Definition at line 271 of file fl_view.cc.
|
static |
Definition at line 582 of file fl_view.cc.
|
static |
Definition at line 625 of file fl_view.cc.
|
static |
Definition at line 410 of file fl_view.cc.
|
static |
Definition at line 155 of file fl_view.cc.
|
static |
Definition at line 653 of file fl_view.cc.
|
static |
Definition at line 639 of file fl_view.cc.
|
static |
Definition at line 258 of file fl_view.cc.
|
static |
Definition at line 531 of file fl_view.cc.
|
staticconstexpr |
Definition at line 33 of file fl_view.cc.