#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"#include <epoxy/egl.h>#include <gmodule.h>#include <cstring>#include "flutter/common/constants.h"#include "flutter/shell/platform/common/engine_switches.h"#include "flutter/shell/platform/embedder/embedder.h"#include "flutter/shell/platform/linux/fl_binary_messenger_private.h"#include "flutter/shell/platform/linux/fl_dart_project_private.h"#include "flutter/shell/platform/linux/fl_display_monitor.h"#include "flutter/shell/platform/linux/fl_engine_private.h"#include "flutter/shell/platform/linux/fl_framebuffer.h"#include "flutter/shell/platform/linux/fl_keyboard_handler.h"#include "flutter/shell/platform/linux/fl_opengl_manager.h"#include "flutter/shell/platform/linux/fl_pixel_buffer_texture_private.h"#include "flutter/shell/platform/linux/fl_platform_handler.h"#include "flutter/shell/platform/linux/fl_plugin_registrar_private.h"#include "flutter/shell/platform/linux/fl_settings_handler.h"#include "flutter/shell/platform/linux/fl_texture_gl_private.h"#include "flutter/shell/platform/linux/fl_texture_registrar_private.h"#include "flutter/shell/platform/linux/fl_windowing_handler.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registry.h"Go to the source code of this file.
Classes | |
| struct | _FlEngine |
Enumerations | |
| enum | { SIGNAL_ON_PRE_ENGINE_RESTART , SIGNAL_UPDATE_SEMANTICS , LAST_SIGNAL } |
Functions | |
| static void | fl_engine_plugin_registry_iface_init (FlPluginRegistryInterface *iface) |
| G_DEFINE_TYPE_WITH_CODE (FlEngine, fl_engine, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_plugin_registry_get_type(), fl_engine_plugin_registry_iface_init)) enum | |
| static void | parse_locale (const gchar *locale, gchar **language, gchar **territory, gchar **codeset, gchar **modifier) |
| static void | view_added_cb (const FlutterAddViewResult *result) |
| static void | view_removed_cb (const FlutterRemoveViewResult *result) |
| static void | free_locale (FlutterLocale *locale) |
| static void | setup_locales (FlEngine *self) |
| static bool | create_opengl_backing_store (FlEngine *self, const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) |
| static bool | collect_opengl_backing_store (FlEngine *self, const FlutterBackingStore *backing_store) |
| static bool | create_software_backing_store (FlEngine *self, const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) |
| static bool | collect_software_backing_store (FlEngine *self, const FlutterBackingStore *backing_store) |
| static bool | compositor_create_backing_store_callback (const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out, void *user_data) |
| static bool | compositor_collect_backing_store_callback (const FlutterBackingStore *backing_store, void *user_data) |
| static bool | compositor_present_view_callback (const FlutterPresentViewInfo *info) |
| static void * | fl_engine_gl_proc_resolver (void *user_data, const char *name) |
| static bool | fl_engine_gl_make_current (void *user_data) |
| static bool | fl_engine_gl_clear_current (void *user_data) |
| static uint32_t | fl_engine_gl_get_fbo (void *user_data) |
| static bool | fl_engine_gl_make_resource_current (void *user_data) |
| static bool | fl_engine_gl_external_texture_frame_callback (void *user_data, int64_t texture_id, size_t width, size_t height, FlutterOpenGLTexture *opengl_texture) |
| static bool | fl_engine_runs_task_on_current_thread (void *user_data) |
| static void | fl_engine_post_task (FlutterTask task, uint64_t target_time_nanos, void *user_data) |
| static void | fl_engine_platform_message_cb (const FlutterPlatformMessage *message, void *user_data) |
| static void | fl_engine_update_semantics_cb (const FlutterSemanticsUpdate2 *update, void *user_data) |
| static void | setup_keyboard (FlEngine *self) |
| static void | fl_engine_on_pre_engine_restart_cb (void *user_data) |
| static void | fl_engine_platform_message_response_cb (const uint8_t *data, size_t data_length, void *user_data) |
| static FlPluginRegistrar * | fl_engine_get_registrar_for_plugin (FlPluginRegistry *registry, const gchar *name) |
| static void | fl_engine_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
| static void | fl_engine_dispose (GObject *object) |
| static void | fl_engine_class_init (FlEngineClass *klass) |
| static void | fl_engine_init (FlEngine *self) |
| static FlEngine * | fl_engine_new_full (FlDartProject *project, FlBinaryMessenger *binary_messenger) |
| FlEngine * | fl_engine_for_id (int64_t id) |
| G_MODULE_EXPORT FlEngine * | fl_engine_new (FlDartProject *project) |
| FlEngine * | fl_engine_new_with_binary_messenger (FlBinaryMessenger *binary_messenger) |
| G_MODULE_EXPORT FlEngine * | fl_engine_new_headless (FlDartProject *project) |
| FlutterRendererType | fl_engine_get_renderer_type (FlEngine *self) |
| FlOpenGLManager * | fl_engine_get_opengl_manager (FlEngine *self) |
| FlDisplayMonitor * | fl_engine_get_display_monitor (FlEngine *self) |
| gboolean | fl_engine_start (FlEngine *self, GError **error) |
| FlutterEngineProcTable * | fl_engine_get_embedder_api (FlEngine *self) |
| void | fl_engine_notify_display_update (FlEngine *self, const FlutterEngineDisplay *displays, size_t displays_length) |
| void | fl_engine_set_implicit_view (FlEngine *self, FlRenderable *renderable) |
| FlutterViewId | fl_engine_add_view (FlEngine *self, FlRenderable *renderable, size_t width, size_t height, double pixel_ratio, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
| gboolean | fl_engine_add_view_finish (FlEngine *self, GAsyncResult *result, GError **error) |
| FlRenderable * | fl_engine_get_renderable (FlEngine *self, FlutterViewId view_id) |
| void | fl_engine_remove_view (FlEngine *self, FlutterViewId view_id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
| gboolean | fl_engine_remove_view_finish (FlEngine *self, GAsyncResult *result, GError **error) |
| void | fl_engine_set_platform_message_handler (FlEngine *self, FlEnginePlatformMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify) |
| gboolean | fl_engine_send_platform_message_response (FlEngine *self, const FlutterPlatformMessageResponseHandle *handle, GBytes *response, GError **error) |
| void | fl_engine_send_platform_message (FlEngine *self, const gchar *channel, GBytes *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
| GBytes * | fl_engine_send_platform_message_finish (FlEngine *self, GAsyncResult *result, GError **error) |
| void | fl_engine_send_window_metrics_event (FlEngine *self, FlutterEngineDisplayId display_id, FlutterViewId view_id, size_t width, size_t height, double pixel_ratio) |
| void | fl_engine_send_mouse_pointer_event (FlEngine *self, FlutterViewId view_id, FlutterPointerPhase phase, size_t timestamp, double x, double y, FlutterPointerDeviceKind device_kind, double scroll_delta_x, double scroll_delta_y, int64_t buttons) |
| void | fl_engine_send_touch_up_event (FlEngine *self, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
| void | fl_engine_send_touch_down_event (FlEngine *self, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
| void | fl_engine_send_touch_move_event (FlEngine *self, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
| void | fl_engine_send_touch_add_event (FlEngine *self, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
| void | fl_engine_send_touch_remove_event (FlEngine *self, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
| void | fl_engine_send_pointer_pan_zoom_event (FlEngine *self, FlutterViewId view_id, size_t timestamp, double x, double y, FlutterPointerPhase phase, double pan_x, double pan_y, double scale, double rotation) |
| static void | send_key_event_cb (bool handled, void *user_data) |
| void | fl_engine_send_key_event (FlEngine *self, const FlutterKeyEvent *event, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
| gboolean | fl_engine_send_key_event_finish (FlEngine *self, GAsyncResult *result, gboolean *handled, GError **error) |
| void | fl_engine_dispatch_semantics_action (FlEngine *self, FlutterViewId view_id, uint64_t node_id, FlutterSemanticsAction action, GBytes *data) |
| gboolean | fl_engine_mark_texture_frame_available (FlEngine *self, int64_t texture_id) |
| gboolean | fl_engine_register_external_texture (FlEngine *self, int64_t texture_id) |
| gboolean | fl_engine_unregister_external_texture (FlEngine *self, int64_t texture_id) |
| G_MODULE_EXPORT FlBinaryMessenger * | fl_engine_get_binary_messenger (FlEngine *self) |
| FlTaskRunner * | fl_engine_get_task_runner (FlEngine *self) |
| void | fl_engine_execute_task (FlEngine *self, FlutterTask *task) |
| G_MODULE_EXPORT FlTextureRegistrar * | fl_engine_get_texture_registrar (FlEngine *self) |
| void | fl_engine_update_accessibility_features (FlEngine *self, int32_t flags) |
| void | fl_engine_request_app_exit (FlEngine *self) |
| FlWindowingHandler * | fl_engine_get_windowing_handler (FlEngine *self) |
| FlKeyboardManager * | fl_engine_get_keyboard_manager (FlEngine *self) |
| FlTextInputHandler * | fl_engine_get_text_input_handler (FlEngine *self) |
| FlMouseCursorHandler * | fl_engine_get_mouse_cursor_handler (FlEngine *self) |
Variables | |
| static constexpr size_t | kPlatformTaskRunnerIdentifier = 1 |
| static constexpr int32_t | kMousePointerDeviceId = 0 |
| static constexpr int32_t | kPointerPanZoomDeviceId = 1 |
| static guint | fl_engine_signals [LAST_SIGNAL] |
| anonymous enum |
| Enumerator | |
|---|---|
| SIGNAL_ON_PRE_ENGINE_RESTART | |
| SIGNAL_UPDATE_SEMANTICS | |
| LAST_SIGNAL | |
Definition at line 114 of file fl_engine.cc.
|
static |
Definition at line 287 of file fl_engine.cc.
References fl_opengl_manager_make_current(), FlutterOpenGLBackingStore::framebuffer, FlutterBackingStore::open_gl, self, and FlutterOpenGLFramebuffer::user_data.
Referenced by compositor_collect_backing_store_callback().
|
static |
Definition at line 323 of file fl_engine.cc.
References FlutterSoftwareBackingStore::allocation, and FlutterBackingStore::software.
Referenced by compositor_collect_backing_store_callback().
|
static |
Definition at line 347 of file fl_engine.cc.
References collect_opengl_backing_store(), collect_software_backing_store(), kOpenGL, kSoftware, self, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 331 of file fl_engine.cc.
References create_opengl_backing_store(), create_software_backing_store(), kOpenGL, kSoftware, self, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 362 of file fl_engine.cc.
References fl_renderable_present_layers(), g_autoptr(), FlutterPresentViewInfo::layers, FlutterPresentViewInfo::layers_count, self, FlutterPresentViewInfo::user_data, and FlutterPresentViewInfo::view_id.
Referenced by fl_engine_start().
|
static |
Definition at line 250 of file fl_engine.cc.
References FlutterOpenGLFramebuffer::destruction_callback, epoxy_has_gl_extension(), fl_framebuffer_get_id(), fl_framebuffer_new(), fl_opengl_manager_make_current(), FlutterOpenGLBackingStore::framebuffer, FlutterSize::height, kFlutterBackingStoreTypeOpenGL, kFlutterOpenGLTargetTypeFramebuffer, FlutterOpenGLFramebuffer::name, FlutterBackingStore::open_gl, self, FlutterBackingStoreConfig::size, FlutterOpenGLFramebuffer::target, FlutterOpenGLBackingStore::type, FlutterBackingStore::type, FlutterOpenGLFramebuffer::user_data, and FlutterSize::width.
Referenced by compositor_create_backing_store_callback().
|
static |
Definition at line 299 of file fl_engine.cc.
References FlutterSoftwareBackingStore::allocation, FlutterSoftwareBackingStore::destruction_callback, FlutterSize::height, FlutterSoftwareBackingStore::height, kFlutterBackingStoreTypeSoftware, FlutterSoftwareBackingStore::row_bytes, FlutterBackingStoreConfig::size, FlutterBackingStore::software, FlutterBackingStore::type, FlutterSoftwareBackingStore::user_data, and FlutterSize::width.
Referenced by compositor_create_backing_store_callback().
| FlutterViewId fl_engine_add_view | ( | FlEngine * | engine, |
| FlRenderable * | renderable, | ||
| size_t | width, | ||
| size_t | height, | ||
| double | pixel_ratio, | ||
| GCancellable * | cancellable, | ||
| GAsyncReadyCallback | callback, | ||
| gpointer | user_data | ||
| ) |
fl_engine_add_view: @engine: an #FlEngine. @renderable: the object that will render this view. @width: width of view in pixels. @height: height of view in pixels. @pixel_ratio: scale factor for view. @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the view is added. @user_data: (closure): user data to pass to @callback.
Asynchronously add a new view. The returned view ID should not be used until this function completes.
Returns: the ID for the view.
Definition at line 892 of file fl_engine.cc.
References FlutterAddViewInfo::add_view_callback, callback, FlutterWindowMetricsEvent::display_id, FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), g_autoptr(), g_hash_table_insert(), height, FlutterWindowMetricsEvent::height, kSuccess, FlutterWindowMetricsEvent::pixel_ratio, self, FlutterWindowMetricsEvent::struct_size, FlutterAddViewInfo::struct_size, user_data, FlutterAddViewInfo::user_data, view_added_cb(), FlutterWindowMetricsEvent::view_id, FlutterAddViewInfo::view_id, view_id, FlutterAddViewInfo::view_metrics, width, and FlutterWindowMetricsEvent::width.
Referenced by fl_view_new_for_engine(), TEST(), TEST(), and TEST().
| gboolean fl_engine_add_view_finish | ( | FlEngine * | engine, |
| GAsyncResult * | result, | ||
| GError ** | error | ||
| ) |
fl_engine_add_view_finish: @engine: an #FlEngine.
Completes request started with fl_engine_add_view().
Returns: TRUE on success.
Definition at line 941 of file fl_engine.cc.
Referenced by add_view_cb(), add_view_engine_error_cb(), add_view_error_cb(), and view_added_cb().
|
static |
Definition at line 608 of file fl_engine.cc.
References fl_engine_dispose(), fl_engine_set_property(), fl_engine_signals, SIGNAL_ON_PRE_ENGINE_RESTART, and SIGNAL_UPDATE_SEMANTICS.
| void fl_engine_dispatch_semantics_action | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| uint64_t | node_id, | ||
| FlutterSemanticsAction | action, | ||
| GBytes * | data | ||
| ) |
fl_engine_dispatch_semantics_action: @engine: an #FlEngine. @view_id: the view that the event occured on. @node_id: the semantics action identifier. @action: the action being dispatched. @data: (allow-none): data associated with the action.
Definition at line 1400 of file fl_engine.cc.
References FlutterSendSemanticsActionInfo::action, action, data, FlutterSendSemanticsActionInfo::data, FlutterSendSemanticsActionInfo::data_length, kSuccess, FlutterSendSemanticsActionInfo::node_id, self, FlutterSendSemanticsActionInfo::struct_size, FlutterSendSemanticsActionInfo::view_id, and view_id.
Referenced by fl_accessible_node_perform_action_impl(), and TEST().
|
static |
Definition at line 563 of file fl_engine.cc.
References fl_binary_messenger_shutdown(), fl_texture_registrar_shutdown(), kSuccess, and self.
Referenced by fl_engine_class_init().
| void fl_engine_execute_task | ( | FlEngine * | engine, |
| FlutterTask * | task | ||
| ) |
fl_engine_execute_task: @engine: an #FlEngine. @task: a FlutterTask to execute.
Executes given Flutter task.
Definition at line 1462 of file fl_engine.cc.
References kSuccess, and self.
Referenced by fl_task_runner_process_expired_tasks_locked().
| FlEngine * fl_engine_for_id | ( | int64_t | handle | ) |
fl_engine_for_id: @handle: an engine identifier obtained through PlatformDispatcher.instance.engineId.
Returns Flutter engine associated with the identifier. The identifier must be valid and for a running engine otherwise the behavior is undefined. Must be called from the main thread.
Returns: a #FlEngine or NULL.
Definition at line 691 of file fl_engine.cc.
Referenced by TEST().
| G_MODULE_EXPORT FlBinaryMessenger * fl_engine_get_binary_messenger | ( | FlEngine * | engine | ) |
fl_engine_get_binary_messenger: @engine: an #FlEngine.
Gets the messenger to communicate with this engine.
Returns: an #FlBinaryMessenger.
Definition at line 1451 of file fl_engine.cc.
References self.
Referenced by fl_keyboard_manager_new(), fl_settings_handler_new(), fl_view_get_registrar_for_plugin(), fl_windowing_handler_new(), realize_cb(), TEST(), TEST(), TEST(), and TEST().
| FlDisplayMonitor * fl_engine_get_display_monitor | ( | FlEngine * | engine | ) |
fl_engine_get_display_monitor: @engine: an #FlEngine.
Gets the display monitor used by this engine.
Returns: an #FlDisplayMonitor.
Definition at line 721 of file fl_engine.cc.
References self.
Referenced by handle_geometry_changed(), and TEST().
| FlutterEngineProcTable * fl_engine_get_embedder_api | ( | FlEngine * | engine | ) |
fl_engine_get_embedder_api: @engine: an #FlEngine.
Gets the embedder API proc table, allowing modificiations for unit testing.
Returns: a mutable pointer to the embedder API proc table.
Definition at line 868 of file fl_engine.cc.
References self.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| FlKeyboardManager * fl_engine_get_keyboard_manager | ( | FlEngine * | engine | ) |
fl_engine_get_keyboard_manager: @engine: an #FlEngine.
Gets the keyboard manager used by this engine.
Returns: an #FlKeyboardManager.
Definition at line 1499 of file fl_engine.cc.
References self.
Referenced by handle_key_event(), sync_modifier_if_needed(), and TEST().
| FlMouseCursorHandler * fl_engine_get_mouse_cursor_handler | ( | FlEngine * | engine | ) |
fl_engine_get_mouse_cursor_handler: @engine: an #FlEngine.
Gets the mouse cursor handler used by this engine.
Returns: an #FlMouseCursorHandler.
Definition at line 1509 of file fl_engine.cc.
References self.
Referenced by cursor_changed_cb(), fl_view_dispose(), setup_cursor(), and TEST().
| FlOpenGLManager * fl_engine_get_opengl_manager | ( | FlEngine * | engine | ) |
fl_engine_get_opengl_manager: @engine: an #FlEngine.
Gets the OpenGL manager used by this engine.
Returns: an #FlOpenGLManager.
Definition at line 716 of file fl_engine.cc.
References self.
Referenced by realize_cb(), and setup_opengl().
|
static |
Definition at line 533 of file fl_engine.cc.
References fl_plugin_registrar_new(), and self.
Referenced by fl_engine_plugin_registry_iface_init().
| FlRenderable * fl_engine_get_renderable | ( | FlEngine * | engine, |
| FlutterViewId | view_id | ||
| ) |
fl_engine_get_renderable: @engine: an #FlEngine. @view_id: ID to check.
Gets the renderable associated with the give view ID.
Returns: (transfer full): a reference to an #FlRenderable or NULL if none for this ID.
Definition at line 948 of file fl_engine.cc.
| FlutterRendererType fl_engine_get_renderer_type | ( | FlEngine * | engine | ) |
fl_engine_get_renderer_type: @engine: an #FlEngine.
Gets the rendering type used by this engine.
Returns: type of rendering used.
Definition at line 711 of file fl_engine.cc.
References self.
Referenced by realize_cb().
| FlTaskRunner * fl_engine_get_task_runner | ( | FlEngine * | engine | ) |
fl_engine_get_task_runner: @engine: an #FlEngine.
Returns: task runner responsible for scheduling Flutter tasks.
Definition at line 1457 of file fl_engine.cc.
References self.
Referenced by setup_opengl(), setup_software(), and TEST().
| FlTextInputHandler * fl_engine_get_text_input_handler | ( | FlEngine * | engine | ) |
fl_engine_get_text_input_handler: @engine: an #FlEngine.
Gets the text input handler used by this engine.
Returns: an #FlTextInputHandler.
Definition at line 1504 of file fl_engine.cc.
References self.
Referenced by fl_view_focus_in_event(), and handle_key_event().
| G_MODULE_EXPORT FlTextureRegistrar * fl_engine_get_texture_registrar | ( | FlEngine * | engine | ) |
fl_engine_get_texture_registrar: @engine: an #FlEngine.
Gets the texture registrar for registering textures.
Returns: an #FlTextureRegistrar.
Definition at line 1469 of file fl_engine.cc.
References self.
Referenced by fl_view_get_registrar_for_plugin().
| FlWindowingHandler * fl_engine_get_windowing_handler | ( | FlEngine * | engine | ) |
fl_engine_get_windowing_handler: @engine: an #FlEngine.
Gets the windowing handler used by this engine.
Returns: an #FlWindowingHandler.
Definition at line 1494 of file fl_engine.cc.
References self.
Referenced by fl_application_activate(), and TEST().
|
static |
Definition at line 391 of file fl_engine.cc.
References fl_opengl_manager_clear_current(), self, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 407 of file fl_engine.cc.
References error, fl_pixel_buffer_texture_populate(), fl_texture_gl_populate(), fl_texture_registrar_lookup_texture(), g_autoptr(), height, self, texture, texture_id, user_data, and width.
Referenced by fl_engine_start().
|
static |
Definition at line 396 of file fl_engine.cc.
Referenced by fl_engine_start().
|
static |
Definition at line 386 of file fl_engine.cc.
References fl_opengl_manager_make_current(), self, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 401 of file fl_engine.cc.
References fl_opengl_manager_make_resource_current(), self, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 382 of file fl_engine.cc.
References name.
Referenced by fl_engine_start().
|
static |
Definition at line 628 of file fl_engine.cc.
References fl_display_monitor_new(), fl_opengl_manager_new(), fl_task_runner_new(), fl_texture_registrar_new(), FlutterEngineGetProcAddresses(), gdk_display_get_default(), kSuccess, self, and value.
| gboolean fl_engine_mark_texture_frame_available | ( | FlEngine * | engine, |
| int64_t | texture_id | ||
| ) |
fl_engine_mark_texture_frame_available: @engine: an #FlEngine. @texture_id: the identifier of the texture whose frame has been updated.
Tells the Flutter engine that a new texture frame is available for the given texture.
Returns: TRUE on success.
Definition at line 1430 of file fl_engine.cc.
References kSuccess, self, and texture_id.
Referenced by mark_texture_frame_available().
| G_MODULE_EXPORT FlEngine * fl_engine_new | ( | FlDartProject * | project | ) |
FlEngine:
#FlEngine is an object that contains a running Flutter engine. fl_engine_new: @project: an #FlDartProject.
Creates new Flutter engine.
Returns: a new #FlEngine.
Definition at line 697 of file fl_engine.cc.
References fl_engine_new_full().
Referenced by fl_engine_new_headless(), fl_view_new(), FlAccessibleNodeTest::SetUp(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
static |
Definition at line 654 of file fl_engine.cc.
References fl_binary_messenger_new(), fl_keyboard_manager_new(), fl_mouse_cursor_handler_new(), fl_windowing_handler_new(), kOpenGL, kSoftware, and self.
Referenced by fl_engine_new(), and fl_engine_new_with_binary_messenger().
| G_MODULE_EXPORT FlEngine * fl_engine_new_headless | ( | FlDartProject * | project | ) |
fl_engine_new_headless: @project: an #FlDartProject.
Creates new Flutter engine running in headless mode.
Returns: a new #FlEngine.
Definition at line 707 of file fl_engine.cc.
References fl_engine_new().
| FlEngine * fl_engine_new_with_binary_messenger | ( | FlBinaryMessenger * | binary_messenger | ) |
fl_engine_new_with_binary_messenger: @binary_messenger: an #FlBinaryMessenger.
Creates a new engine with a custom binary messenger. Used for testing.
Returns: a new #FlEngine.
Definition at line 701 of file fl_engine.cc.
References fl_dart_project_new(), fl_engine_new_full(), and g_autoptr().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| void fl_engine_notify_display_update | ( | FlEngine * | engine, |
| const FlutterEngineDisplay * | displays, | ||
| size_t | displays_length | ||
| ) |
fl_engine_notify_display_update: @engine: an #FlEngine. @displays: displays present on the system. @displays_length: length of @displays.
Notify the current displays that are in the system.
Definition at line 872 of file fl_engine.cc.
References displays, kFlutterEngineDisplaysUpdateTypeStartup, kSuccess, and self.
Referenced by notify_display_update(), and TEST().
|
static |
Definition at line 514 of file fl_engine.cc.
References fl_engine_signals, g_signal_emit(), self, setup_keyboard(), SIGNAL_ON_PRE_ENGINE_RESTART, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 463 of file fl_engine.cc.
References data, fl_engine_send_platform_message_response(), g_autoptr(), message, self, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 524 of file fl_engine.cc.
References data, g_autoptr(), and user_data.
Referenced by fl_engine_send_platform_message().
|
static |
Definition at line 542 of file fl_engine.cc.
References fl_engine_get_registrar_for_plugin().
|
static |
Definition at line 454 of file fl_engine.cc.
References fl_task_runner_post_flutter_task(), self, and user_data.
Referenced by fl_engine_start().
| gboolean fl_engine_register_external_texture | ( | FlEngine * | engine, |
| int64_t | texture_id | ||
| ) |
fl_engine_register_external_texture: @engine: an #FlEngine. @texture_id: the identifier of the texture that is available.
Tells the Flutter engine that a new external texture is available.
Returns: TRUE on success.
Definition at line 1437 of file fl_engine.cc.
References kSuccess, self, and texture_id.
Referenced by register_texture().
| void fl_engine_remove_view | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| GCancellable * | cancellable, | ||
| GAsyncReadyCallback | callback, | ||
| gpointer | user_data | ||
| ) |
fl_engine_remove_view: @engine: an #FlEngine. @view_id: ID to remove. @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the view is added. @user_data: (closure): user data to pass to @callback.
Removes a view previously added with fl_engine_add_view().
Definition at line 956 of file fl_engine.cc.
References callback, FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), g_autoptr(), kSuccess, FlutterRemoveViewInfo::remove_view_callback, self, FlutterRemoveViewInfo::struct_size, user_data, FlutterRemoveViewInfo::user_data, FlutterRemoveViewInfo::view_id, view_id, and view_removed_cb().
Referenced by fl_view_dispose(), TEST(), TEST(), and TEST().
| gboolean fl_engine_remove_view_finish | ( | FlEngine * | engine, |
| GAsyncResult * | result, | ||
| GError ** | error | ||
| ) |
fl_engine_remove_view_finish: @engine: an #FlEngine.
Completes request started with fl_engine_remove_view().
Returns: TRUE on succcess.
Definition at line 983 of file fl_engine.cc.
Referenced by remove_view_cb(), remove_view_engine_error_cb(), and remove_view_error_cb().
| void fl_engine_request_app_exit | ( | FlEngine * | engine | ) |
fl_engine_request_app_exit: @engine: an #FlEngine.
Request the application exits.
Definition at line 1489 of file fl_engine.cc.
References fl_platform_handler_request_app_exit(), and self.
Referenced by window_delete_event_cb().
|
static |
Definition at line 448 of file fl_engine.cc.
References self, and user_data.
Referenced by fl_engine_start().
| void fl_engine_send_key_event | ( | FlEngine * | engine, |
| const FlutterKeyEvent * | event, | ||
| GCancellable * | cancellable, | ||
| GAsyncReadyCallback | callback, | ||
| gpointer | user_data | ||
| ) |
fl_engine_send_key_event: @engine: an #FlEngine. @event: key event to send. @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied. @user_data: (closure): user data to pass to @callback.
Send a key event to the engine.
Definition at line 1360 of file fl_engine.cc.
References callback, FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), g_autoptr(), kSuccess, self, send_key_event_cb(), and user_data.
Referenced by fl_key_embedder_responder_handle_event(), fl_key_embedder_responder_handle_event_impl(), synthesize_simple_event(), TEST(), TEST(), and TEST().
| gboolean fl_engine_send_key_event_finish | ( | FlEngine * | engine, |
| GAsyncResult * | result, | ||
| gboolean * | handled, | ||
| GError ** | error | ||
| ) |
fl_engine_send_key_event_finish: @engine: an #FlEngine.
Completes request started with fl_engine_send_key_event().
Returns: TRUE on success.
Definition at line 1383 of file fl_engine.cc.
| void fl_engine_send_mouse_pointer_event | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| FlutterPointerPhase | phase, | ||
| size_t | timestamp, | ||
| double | x, | ||
| double | y, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| double | scroll_delta_x, | ||
| double | scroll_delta_y, | ||
| int64_t | buttons | ||
| ) |
fl_engine_send_mouse_pointer_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @phase: mouse phase. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device_kind: kind of pointing device. @scroll_delta_x: x offset of scroll. @scroll_delta_y: y offset of scroll. @buttons: buttons that are pressed.
Sends a mouse pointer event to the engine.
Definition at line 1136 of file fl_engine.cc.
References FlutterPointerEvent::buttons, FlutterPointerEvent::device, FlutterPointerEvent::device_kind, kFlutterPointerSignalKindScroll, kMousePointerDeviceId, kSuccess, FlutterPointerEvent::phase, FlutterPointerEvent::scroll_delta_x, FlutterPointerEvent::scroll_delta_y, self, FlutterPointerEvent::signal_kind, FlutterPointerEvent::struct_size, FlutterPointerEvent::timestamp, FlutterPointerEvent::view_id, view_id, x, FlutterPointerEvent::x, FlutterPointerEvent::y, and y.
Referenced by ensure_pointer_added(), fl_pointer_manager_handle_button_press(), fl_pointer_manager_handle_button_release(), fl_pointer_manager_handle_leave(), fl_pointer_manager_handle_motion(), fl_scrolling_manager_handle_scroll_event(), and TEST().
| void fl_engine_send_platform_message | ( | FlEngine * | engine, |
| const gchar * | channel, | ||
| GBytes * | message, | ||
| GCancellable * | cancellable, | ||
| GAsyncReadyCallback | callback, | ||
| gpointer | user_data | ||
| ) |
fl_engine_send_platform_message: @engine: an #FlEngine. @channel: channel to send to. @message: (allow-none): message buffer to send or NULL for an empty message @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied. @user_data: (closure): user data to pass to @callback.
Asynchronously sends a platform message.
Definition at line 1041 of file fl_engine.cc.
References callback, FlutterPlatformMessage::channel, channel, FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), fl_engine_platform_message_response_cb(), kSuccess, FlutterPlatformMessage::message, message, FlutterPlatformMessage::message_size, FlutterPlatformMessage::response_handle, self, FlutterPlatformMessage::struct_size, and user_data.
Referenced by send_on_channel(), and TEST().
| GBytes * fl_engine_send_platform_message_finish | ( | FlEngine * | engine, |
| GAsyncResult * | result, | ||
| GError ** | error | ||
| ) |
fl_engine_send_platform_message_finish: @engine: an #FlEngine.
Completes request started with fl_engine_send_platform_message().
Returns: message response on success or NULL on error.
Definition at line 1102 of file fl_engine.cc.
Referenced by send_on_channel_finish().
| gboolean fl_engine_send_platform_message_response | ( | FlEngine * | engine, |
| const FlutterPlatformMessageResponseHandle * | handle, | ||
| GBytes * | response, | ||
| GError ** | error | ||
| ) |
fl_engine_send_platform_message_response: @engine: an #FlEngine. @handle: handle that was provided in FlEnginePlatformMessageHandler. @response: (allow-none): response to send or NULL for an empty response. @error: (allow-none): #GError location to store the error occurring, or NULL to ignore.
Responds to a platform message.
Returns: TRUE on success.
Definition at line 1009 of file fl_engine.cc.
References data, error, FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), kSuccess, self, and TRUE.
Referenced by fl_engine_platform_message_cb(), send_response(), and TEST().
| void fl_engine_send_pointer_pan_zoom_event | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| size_t | timestamp, | ||
| double | x, | ||
| double | y, | ||
| FlutterPointerPhase | phase, | ||
| double | pan_x, | ||
| double | pan_y, | ||
| double | scale, | ||
| double | rotation | ||
| ) |
fl_engine_send_pointer_pan_zoom_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @phase: mouse phase. @pan_x: x offset of the pan/zoom in pixels. @pan_y: y offset of the pan/zoom in pixels. @scale: scale of the pan/zoom. @rotation: rotation of the pan/zoom in radians.
Sends a pan/zoom pointer event to the engine.
Definition at line 1318 of file fl_engine.cc.
References FlutterPointerEvent::device, FlutterPointerEvent::device_kind, kFlutterPointerDeviceKindTrackpad, kPointerPanZoomDeviceId, kSuccess, FlutterPointerEvent::pan_x, FlutterPointerEvent::pan_y, FlutterPointerEvent::phase, FlutterPointerEvent::rotation, FlutterPointerEvent::scale, self, FlutterPointerEvent::struct_size, FlutterPointerEvent::timestamp, FlutterPointerEvent::view_id, view_id, x, FlutterPointerEvent::x, FlutterPointerEvent::y, and y.
Referenced by fl_scrolling_manager_handle_rotation_begin(), fl_scrolling_manager_handle_rotation_end(), fl_scrolling_manager_handle_rotation_update(), fl_scrolling_manager_handle_scroll_event(), fl_scrolling_manager_handle_zoom_begin(), fl_scrolling_manager_handle_zoom_end(), fl_scrolling_manager_handle_zoom_update(), and TEST().
| void fl_engine_send_touch_add_event | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| size_t | timestamp, | ||
| double | x, | ||
| double | y, | ||
| int32_t | device | ||
| ) |
fl_engine_send_touch_add_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch add event to the engine.
Definition at line 1260 of file fl_engine.cc.
References device, kAdd, kFlutterPointerDeviceKindTouch, kSuccess, self, FlutterPointerEvent::timestamp, view_id, x, and y.
Referenced by ensure_touch_added().
| void fl_engine_send_touch_down_event | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| size_t | timestamp, | ||
| double | x, | ||
| double | y, | ||
| int32_t | device | ||
| ) |
fl_engine_send_touch_down_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch down event to the engine.
Definition at line 1202 of file fl_engine.cc.
References device, kDown, kFlutterPointerButtonMousePrimary, kFlutterPointerDeviceKindTouch, kSuccess, self, FlutterPointerEvent::timestamp, view_id, x, and y.
Referenced by fl_touch_manager_handle_touch_event().
| void fl_engine_send_touch_move_event | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| size_t | timestamp, | ||
| double | x, | ||
| double | y, | ||
| int32_t | device | ||
| ) |
fl_engine_send_touch_move_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch move event to the engine.
Definition at line 1231 of file fl_engine.cc.
References device, kFlutterPointerButtonMousePrimary, kFlutterPointerDeviceKindTouch, kMove, kSuccess, self, FlutterPointerEvent::timestamp, view_id, x, and y.
Referenced by fl_touch_manager_handle_touch_event().
| void fl_engine_send_touch_remove_event | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| size_t | timestamp, | ||
| double | x, | ||
| double | y, | ||
| int32_t | device | ||
| ) |
fl_engine_send_touch_remove_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch remove event to the engine.
Definition at line 1289 of file fl_engine.cc.
References device, kFlutterPointerDeviceKindTouch, kRemove, kSuccess, self, FlutterPointerEvent::timestamp, view_id, x, and y.
Referenced by fl_touch_manager_handle_touch_event().
| void fl_engine_send_touch_up_event | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| size_t | timestamp, | ||
| double | x, | ||
| double | y, | ||
| int32_t | device | ||
| ) |
fl_engine_send_touch_up_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch up event to the engine.
Definition at line 1173 of file fl_engine.cc.
References device, kFlutterPointerDeviceKindTouch, kSuccess, kUp, self, FlutterPointerEvent::timestamp, view_id, x, and y.
Referenced by fl_touch_manager_handle_touch_event().
| void fl_engine_send_window_metrics_event | ( | FlEngine * | engine, |
| FlutterEngineDisplayId | display_id, | ||
| FlutterViewId | view_id, | ||
| size_t | width, | ||
| size_t | height, | ||
| double | pixel_ratio | ||
| ) |
fl_engine_send_window_metrics_event: @engine: an #FlEngine. @display_id: the display this view is rendering on. @view_id: the view that the event occured on. @width: width of the window in pixels. @height: height of the window in pixels. @pixel_ratio: scale factor for window.
Sends a window metrics event to the engine.
Definition at line 1111 of file fl_engine.cc.
References height, kSuccess, self, FlutterWindowMetricsEvent::struct_size, view_id, and width.
Referenced by handle_geometry_changed(), and TEST().
| void fl_engine_set_implicit_view | ( | FlEngine * | engine, |
| FlRenderable * | renderable | ||
| ) |
fl_engine_set_implicit_view: @engine: an #FlEngine. @renderable: the object that will render the implicit view.
Sets the object to render the implicit view.
Definition at line 885 of file fl_engine.cc.
References g_hash_table_insert(), flutter::kFlutterImplicitViewId, and self.
Referenced by fl_view_new(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| void fl_engine_set_platform_message_handler | ( | FlEngine * | engine, |
| FlEnginePlatformMessageHandler | handler, | ||
| gpointer | user_data, | ||
| GDestroyNotify | destroy_notify | ||
| ) |
fl_engine_set_platform_message_handler: @engine: an #FlEngine. @handler: function to call when a platform message is received. @user_data: (closure): user data to pass to @handler. @destroy_notify: (allow-none): a function which gets called to free @user_data, or NULL.
Registers the function called when a platform message is received. Call fl_engine_send_platform_message_response() with the response to this message. Ownership of FlutterPlatformMessageResponseHandle is transferred to the caller, and the message must be responded to avoid memory leaks.
Definition at line 990 of file fl_engine.cc.
References destroy_notify, handler, self, and user_data.
Referenced by fl_binary_messenger_new().
|
static |
Definition at line 547 of file fl_engine.cc.
References prop_id, pspec, self, and value.
Referenced by fl_engine_class_init().
| gboolean fl_engine_start | ( | FlEngine * | engine, |
| GError ** | error | ||
| ) |
fl_engine_start: @engine: an #FlEngine. @error: (allow-none): #GError location to store the error occurring, or NULL to ignore.
Starts the Flutter engine.
Returns: TRUE on success.
Definition at line 726 of file fl_engine.cc.
References args, FlutterOpenGLRendererConfig::clear_current, FlutterCompositor::collect_backing_store_callback, compositor_collect_backing_store_callback(), compositor_create_backing_store_callback(), compositor_present_view_callback(), FlutterCompositor::create_backing_store_callback, FlutterEngineAOTDataSource::elf_path, error, FlutterOpenGLRendererConfig::fbo_callback, fl_dart_project_get_aot_library_path(), fl_dart_project_get_assets_path(), fl_dart_project_get_dart_entrypoint_arguments(), fl_dart_project_get_icu_data_path(), fl_dart_project_get_ui_thread_policy(), fl_display_monitor_start(), FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), fl_engine_gl_clear_current(), fl_engine_gl_external_texture_frame_callback(), fl_engine_gl_get_fbo(), fl_engine_gl_make_current(), fl_engine_gl_make_resource_current(), fl_engine_gl_proc_resolver(), fl_engine_on_pre_engine_restart_cb(), fl_engine_platform_message_cb(), fl_engine_post_task(), fl_engine_runs_task_on_current_thread(), fl_engine_update_semantics_cb(), fl_platform_handler_new(), fl_settings_handler_new(), fl_settings_handler_start(), fl_settings_new(), FL_UI_THREAD_POLICY_DEFAULT, FL_UI_THREAD_POLICY_RUN_ON_PLATFORM_THREAD, FL_UI_THREAD_POLICY_RUN_ON_SEPARATE_THREAD, FLUTTER_ENGINE_VERSION, g_autoptr(), flutter::GetSwitchesFromEnvironment(), FlutterOpenGLRendererConfig::gl_external_texture_frame_callback, FlutterOpenGLRendererConfig::gl_proc_resolver, height, FlutterTaskRunnerDescription::identifier, kFlutterEngineAOTDataSourceTypeElfPath, kMetal, kOpenGL, kPlatformTaskRunnerIdentifier, kSoftware, kSuccess, kVulkan, FlutterOpenGLRendererConfig::make_current, FlutterOpenGLRendererConfig::make_resource_current, FlutterRendererConfig::open_gl, FlutterCustomTaskRunners::platform_task_runner, FlutterTaskRunnerDescription::post_task_callback, FlutterOpenGLRendererConfig::present, FlutterCompositor::present_view_callback, FlutterTaskRunnerDescription::runs_task_on_current_thread_callback, self, setup_keyboard(), setup_locales(), FlutterRendererConfig::software, FlutterOpenGLRendererConfig::struct_size, FlutterSoftwareRendererConfig::struct_size, FlutterTaskRunnerDescription::struct_size, FlutterCustomTaskRunners::struct_size, FlutterCompositor::struct_size, FlutterProjectArgs::struct_size, FlutterSoftwareRendererConfig::surface_present_callback, TRUE, FlutterRendererConfig::type, FlutterEngineAOTDataSource::type, FlutterCustomTaskRunners::ui_task_runner, user_data, FlutterTaskRunnerDescription::user_data, and FlutterCompositor::user_data.
Referenced by realize_cb(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| gboolean fl_engine_unregister_external_texture | ( | FlEngine * | engine, |
| int64_t | texture_id | ||
| ) |
fl_engine_unregister_external_texture: @engine: an #FlEngine. @texture_id: the identifier of the texture that is not available anymore.
Tells the Flutter engine that an existing external texture is not available anymore.
Returns: TRUE on success.
Definition at line 1444 of file fl_engine.cc.
References kSuccess, self, and texture_id.
Referenced by unregister_texture().
| void fl_engine_update_accessibility_features | ( | FlEngine * | engine, |
| int32_t | flags | ||
| ) |
fl_engine_update_accessibility_features: @engine: an #FlEngine. @flags: the features to enable in the accessibility tree.
Tells the Flutter engine to update the flags on the accessibility tree.
Definition at line 1475 of file fl_engine.cc.
References kSuccess, and self.
Referenced by update_settings().
|
static |
Definition at line 483 of file fl_engine.cc.
References fl_engine_signals, g_signal_emit(), self, SIGNAL_UPDATE_SEMANTICS, and user_data.
Referenced by fl_engine_start().
|
static |
Definition at line 193 of file fl_engine.cc.
References FlutterLocale::country_code, and FlutterLocale::language_code.
Referenced by setup_locales().
| G_DEFINE_TYPE_WITH_CODE | ( | FlEngine | , |
| fl_engine | , | ||
| G_TYPE_OBJECT | , | ||
| G_IMPLEMENT_INTERFACE(fl_plugin_registry_get_type(), fl_engine_plugin_registry_iface_init) | |||
| ) |
Definition at line 118 of file fl_engine.cc.
|
static |
Definition at line 128 of file fl_engine.cc.
Referenced by setup_locales().
|
static |
Definition at line 1353 of file fl_engine.cc.
References g_autoptr(), and user_data.
Referenced by fl_engine_send_key_event().
|
static |
Definition at line 490 of file fl_engine.cc.
References fl_keyboard_handler_new(), fl_keyboard_manager_new(), fl_text_input_handler_get_widget(), fl_text_input_handler_new(), fl_text_input_handler_set_widget(), and self.
Referenced by fl_engine_on_pre_engine_restart_cb(), and fl_engine_start().
|
static |
Definition at line 200 of file fl_engine.cc.
References FlutterLocale::country_code, free_locale(), g_autoptr(), i, kSuccess, FlutterLocale::language_code, parse_locale(), FlutterLocale::script_code, self, FlutterLocale::struct_size, and FlutterLocale::variant_code.
Referenced by fl_engine_start().
|
static |
Definition at line 171 of file fl_engine.cc.
References FlutterAddViewResult::added, FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), g_autoptr(), TRUE, and FlutterAddViewResult::user_data.
Referenced by fl_engine_add_view().
|
static |
Definition at line 182 of file fl_engine.cc.
References FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), g_autoptr(), FlutterRemoveViewResult::removed, TRUE, and FlutterRemoveViewResult::user_data.
Referenced by fl_engine_remove_view().
|
static |
Definition at line 116 of file fl_engine.cc.
Referenced by fl_engine_class_init(), fl_engine_on_pre_engine_restart_cb(), and fl_engine_update_semantics_cb().
|
staticconstexpr |
Definition at line 36 of file fl_engine.cc.
Referenced by fl_engine_send_mouse_pointer_event().
|
staticconstexpr |
Definition at line 32 of file fl_engine.cc.
Referenced by fl_engine_start().
|
staticconstexpr |
Definition at line 37 of file fl_engine.cc.
Referenced by fl_engine_send_pointer_pan_zoom_event().