Flutter Linux Embedder
fl_engine_private.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_ENGINE_PRIVATE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_ENGINE_PRIVATE_H_
7 
8 #include <glib-object.h>
9 
10 #include "flutter/shell/platform/embedder/embedder.h"
20 
21 G_BEGIN_DECLS
22 
23 /**
24  * FlEngineError:
25  * Errors for #FlEngine objects to set on failures.
26  */
27 
28 typedef enum {
31 
32 GQuark fl_engine_error_quark(void) G_GNUC_CONST;
33 
34 /**
35  * FlEnginePlatformMessageHandler:
36  * @engine: an #FlEngine.
37  * @channel: channel message received on.
38  * @message: message content received from Dart.
39  * @response_handle: a handle to respond to the message with.
40  * @user_data: (closure): data provided when registering this handler.
41  *
42  * Function called when platform messages are received.
43  *
44  * Returns: %TRUE if message has been accepted.
45  */
46 typedef gboolean (*FlEnginePlatformMessageHandler)(
47  FlEngine* engine,
48  const gchar* channel,
49  GBytes* message,
50  const FlutterPlatformMessageResponseHandle* response_handle,
51  gpointer user_data);
52 
53 /**
54  * fl_engine_new_with_binary_messenger:
55  * @binary_messenger: an #FlBinaryMessenger.
56  *
57  * Creates a new engine with a custom binary messenger. Used for testing.
58  *
59  * Returns: a new #FlEngine.
60  */
62  FlBinaryMessenger* binary_messenger);
63 
64 /**
65  * fl_engine_get_renderer_type:
66  * @engine: an #FlEngine.
67  *
68  * Gets the rendering type used by this engine.
69  *
70  * Returns: type of rendering used.
71  */
72 FlutterRendererType fl_engine_get_renderer_type(FlEngine* engine);
73 
74 /**
75  * fl_engine_get_opengl_manager:
76  * @engine: an #FlEngine.
77  *
78  * Gets the OpenGL manager used by this engine.
79  *
80  * Returns: an #FlOpenGLManager.
81  */
82 FlOpenGLManager* fl_engine_get_opengl_manager(FlEngine* engine);
83 
84 /**
85  * fl_engine_get_display_monitor:
86  * @engine: an #FlEngine.
87  *
88  * Gets the display monitor used by this engine.
89  *
90  * Returns: an #FlDisplayMonitor.
91  */
92 FlDisplayMonitor* fl_engine_get_display_monitor(FlEngine* engine);
93 
94 /**
95  * fl_engine_start:
96  * @engine: an #FlEngine.
97  * @error: (allow-none): #GError location to store the error occurring, or %NULL
98  * to ignore. If `error` is not %NULL, `*error` must be initialized (typically
99  * %NULL, but an error from a previous call using GLib error handling is
100  * explicitly valid).
101  *
102  * Starts the Flutter engine.
103  *
104  * Returns: %TRUE on success.
105  */
106 gboolean fl_engine_start(FlEngine* engine, GError** error);
107 
108 /**
109  * fl_engine_get_embedder_api:
110  * @engine: an #FlEngine.
111  *
112  * Gets the embedder API proc table, allowing modificiations for unit testing.
113  *
114  * Returns: a mutable pointer to the embedder API proc table.
115  */
116 FlutterEngineProcTable* fl_engine_get_embedder_api(FlEngine* engine);
117 
118 /**
119  * fl_engine_notify_display_update:
120  * @engine: an #FlEngine.
121  * @displays: displays present on the system.
122  * @displays_length: length of @displays.
123  *
124  * Notify the current displays that are in the system.
125  */
126 void fl_engine_notify_display_update(FlEngine* engine,
127  const FlutterEngineDisplay* displays,
128  size_t displays_length);
129 
130 /**
131  * fl_engine_set_implicit_view:
132  * @engine: an #FlEngine.
133  * @renderable: the object that will render the implicit view.
134  *
135  * Sets the object to render the implicit view.
136  */
137 void fl_engine_set_implicit_view(FlEngine* engine, FlRenderable* renderable);
138 
139 /**
140  * fl_engine_add_view:
141  * @engine: an #FlEngine.
142  * @renderable: the object that will render this view.
143  * @min_width: minimum width of view in pixels.
144  * @min_height: minimum height of view in pixels.
145  * @max_width: maximum width of view in pixels.
146  * @max_height: maximum height of view in pixels.
147  * @pixel_ratio: scale factor for view.
148  * @cancellable: (allow-none): a #GCancellable or %NULL.
149  * @callback: (scope async): a #GAsyncReadyCallback to call when the view is
150  * added.
151  * @user_data: (closure): user data to pass to @callback.
152  *
153  * Asynchronously add a new view. The returned view ID should not be used until
154  * this function completes.
155  *
156  * Returns: the ID for the view.
157  */
158 FlutterViewId fl_engine_add_view(FlEngine* engine,
159  FlRenderable* renderable,
160  size_t min_width,
161  size_t min_height,
162  size_t max_width,
163  size_t max_height,
164  double pixel_ratio,
165  GCancellable* cancellable,
166  GAsyncReadyCallback callback,
167  gpointer user_data);
168 
169 /**
170  * fl_engine_add_view_finish:
171  * @engine: an #FlEngine.
172  * @result: a #GAsyncResult.
173  * @error: (allow-none): #GError location to store the error occurring, or %NULL
174  * to ignore. If `error` is not %NULL, `*error` must be initialized (typically
175  * %NULL, but an error from a previous call using GLib error handling is
176  * explicitly valid).
177  *
178  * Completes request started with fl_engine_add_view().
179  *
180  * Returns: %TRUE on success.
181  */
182 gboolean fl_engine_add_view_finish(FlEngine* engine,
183  GAsyncResult* result,
184  GError** error);
185 
186 /**
187  * fl_engine_get_renderable:
188  * @engine: an #FlEngine.
189  * @view_id: ID to check.
190  *
191  * Gets the renderable associated with the give view ID.
192  *
193  * Returns: (transfer full): a reference to an #FlRenderable or %NULL if none
194  * for this ID.
195  */
196 FlRenderable* fl_engine_get_renderable(FlEngine* engine, FlutterViewId view_id);
197 
198 /**
199  * fl_engine_remove_view:
200  * @engine: an #FlEngine.
201  * @view_id: ID to remove.
202  * @cancellable: (allow-none): a #GCancellable or %NULL.
203  * @callback: (scope async): a #GAsyncReadyCallback to call when the view is
204  * added.
205  * @user_data: (closure): user data to pass to @callback.
206  *
207  * Removes a view previously added with fl_engine_add_view().
208  */
209 void fl_engine_remove_view(FlEngine* engine,
210  FlutterViewId view_id,
211  GCancellable* cancellable,
212  GAsyncReadyCallback callback,
213  gpointer user_data);
214 
215 /**
216  * fl_engine_remove_view_finish:
217  * @engine: an #FlEngine.
218  * @result: a #GAsyncResult.
219  * @error: (allow-none): #GError location to store the error occurring, or %NULL
220  * to ignore. If `error` is not %NULL, `*error` must be initialized (typically
221  * %NULL, but an error from a previous call using GLib error handling is
222  * explicitly valid).
223  *
224  * Completes request started with fl_engine_remove_view().
225  *
226  * Returns: %TRUE on succcess.
227  */
228 gboolean fl_engine_remove_view_finish(FlEngine* engine,
229  GAsyncResult* result,
230  GError** error);
231 
232 /**
233  * fl_engine_set_platform_message_handler:
234  * @engine: an #FlEngine.
235  * @handler: function to call when a platform message is received.
236  * @user_data: (closure): user data to pass to @handler.
237  * @destroy_notify: (allow-none): a function which gets called to free
238  * @user_data, or %NULL.
239  *
240  * Registers the function called when a platform message is received. Call
241  * fl_engine_send_platform_message_response() with the response to this message.
242  * Ownership of #FlutterPlatformMessageResponseHandle is
243  * transferred to the caller, and the message must be responded to avoid
244  * memory leaks.
245  */
247  FlEngine* engine,
249  gpointer user_data,
250  GDestroyNotify destroy_notify);
251 
252 /**
253  * fl_engine_schedule_frame:
254  * @engine: an #FlEngine.
255  *
256  * Asks the engine to render another frame. Used when a view needs the current
257  * frame again, e.g. because it wasn't able to use the last one.
258  */
259 void fl_engine_schedule_frame(FlEngine* engine);
260 
261 /**
262  * fl_engine_send_window_metrics_event:
263  * @engine: an #FlEngine.
264  * @display_id: the display this view is rendering on.
265  * @view_id: the view that the event occured on.
266  * @min_width: minimum width of view in pixels.
267  * @min_height: minimum height of view in pixels.
268  * @max_width: maximum width of view in pixels.
269  * @max_height: maximum height of view in pixels.
270  * @pixel_ratio: scale factor for view.
271  *
272  * Sends a window metrics event to the engine.
273  */
274 void fl_engine_send_window_metrics_event(FlEngine* engine,
275  FlutterEngineDisplayId display_id,
276  FlutterViewId view_id,
277  size_t min_width,
278  size_t min_height,
279  size_t max_width,
280  size_t max_height,
281  double pixel_ratio);
282 
283 /**
284  * fl_engine_send_mouse_pointer_event:
285  * @engine: an #FlEngine.
286  * @view_id: the view that the event occured on.
287  * @phase: mouse phase.
288  * @timestamp: time when event occurred in microseconds.
289  * @x: x location of mouse cursor.
290  * @y: y location of mouse cursor.
291  * @device_kind: kind of pointing device.
292  * @scroll_delta_x: x offset of scroll.
293  * @scroll_delta_y: y offset of scroll.
294  * @buttons: buttons that are pressed.
295  * @rotation: rotation of the pointer device in degrees.
296  * @pressure: pressure of the pointer device.
297  *
298  * Sends a mouse pointer event to the engine.
299  */
300 void fl_engine_send_mouse_pointer_event(FlEngine* engine,
301  FlutterViewId view_id,
302  FlutterPointerPhase phase,
303  size_t timestamp,
304  double x,
305  double y,
306  FlutterPointerDeviceKind device_kind,
307  double scroll_delta_x,
308  double scroll_delta_y,
309  int64_t buttons,
310  double rotation,
311  double pressure);
312 
313 /**
314  * fl_engine_send_touch_up_event:
315  * @engine: an #FlEngine.
316  * @view_id: the view that the event occured on.
317  * @timestamp: time when event occurred in microseconds.
318  * @x: x location of mouse cursor.
319  * @y: y location of mouse cursor.
320  * @device: device id.
321  *
322  * Sends a touch up event to the engine.
323  */
324 void fl_engine_send_touch_up_event(FlEngine* engine,
325  FlutterViewId view_id,
326  size_t timestamp,
327  double x,
328  double y,
329  int32_t device);
330 
331 /**
332  * fl_engine_send_touch_down_event:
333  * @engine: an #FlEngine.
334  * @view_id: the view that the event occured on.
335  * @timestamp: time when event occurred in microseconds.
336  * @x: x location of mouse cursor.
337  * @y: y location of mouse cursor.
338  * @device: device id.
339  *
340  * Sends a touch down event to the engine.
341  */
342 void fl_engine_send_touch_down_event(FlEngine* engine,
343  FlutterViewId view_id,
344  size_t timestamp,
345  double x,
346  double y,
347  int32_t device);
348 /**
349  * fl_engine_send_touch_move_event:
350  * @engine: an #FlEngine.
351  * @view_id: the view that the event occured on.
352  * @timestamp: time when event occurred in microseconds.
353  * @x: x location of mouse cursor.
354  * @y: y location of mouse cursor.
355  * @device: device id.
356  *
357  * Sends a touch move event to the engine.
358  */
359 void fl_engine_send_touch_move_event(FlEngine* engine,
360  FlutterViewId view_id,
361  size_t timestamp,
362  double x,
363  double y,
364  int32_t device);
365 
366 /**
367  * fl_engine_send_touch_cancel_event:
368  * @engine: an #FlEngine.
369  * @view_id: the view that the event occured on.
370  * @timestamp: time when event occurred in microseconds.
371  * @x: x location of mouse cursor.
372  * @y: y location of mouse cursor.
373  * @device: device id.
374  *
375  * Sends a touch cancel event to the engine, i.e. the touch sequence was
376  * aborted without the touch being lifted.
377  */
378 void fl_engine_send_touch_cancel_event(FlEngine* engine,
379  FlutterViewId view_id,
380  size_t timestamp,
381  double x,
382  double y,
383  int32_t device);
384 
385 /**
386  * fl_engine_send_touch_add_event:
387  * @engine: an #FlEngine.
388  * @view_id: the view that the event occured on.
389  * @timestamp: time when event occurred in microseconds.
390  * @x: x location of mouse cursor.
391  * @y: y location of mouse cursor.
392  * @device: device id.
393  *
394  * Sends a touch add event to the engine.
395  */
396 void fl_engine_send_touch_add_event(FlEngine* engine,
397  FlutterViewId view_id,
398  size_t timestamp,
399  double x,
400  double y,
401  int32_t device);
402 
403 /**
404  * fl_engine_send_touch_remove_event:
405  * @engine: an #FlEngine.
406  * @view_id: the view that the event occured on.
407  * @timestamp: time when event occurred in microseconds.
408  * @x: x location of mouse cursor.
409  * @y: y location of mouse cursor.
410  * @device: device id.
411  *
412  * Sends a touch remove event to the engine.
413  */
414 void fl_engine_send_touch_remove_event(FlEngine* engine,
415  FlutterViewId view_id,
416  size_t timestamp,
417  double x,
418  double y,
419  int32_t device);
420 
421 /**
422  * fl_engine_send_pointer_pan_zoom_event:
423  * @engine: an #FlEngine.
424  * @view_id: the view that the event occured on.
425  * @timestamp: time when event occurred in microseconds.
426  * @x: x location of mouse cursor.
427  * @y: y location of mouse cursor.
428  * @phase: mouse phase.
429  * @pan_x: x offset of the pan/zoom in pixels.
430  * @pan_y: y offset of the pan/zoom in pixels.
431  * @scale: scale of the pan/zoom.
432  * @rotation: rotation of the pan/zoom in radians.
433  *
434  * Sends a pan/zoom pointer event to the engine.
435  */
436 void fl_engine_send_pointer_pan_zoom_event(FlEngine* engine,
437  FlutterViewId view_id,
438  size_t timestamp,
439  double x,
440  double y,
441  FlutterPointerPhase phase,
442  double pan_x,
443  double pan_y,
444  double scale,
445  double rotation);
446 
447 /**
448  * fl_engine_send_key_event:
449  * @engine: an #FlEngine.
450  * @event: key event to send.
451  * @cancellable: (allow-none): a #GCancellable or %NULL.
452  * @callback: (scope async): a #GAsyncReadyCallback to call when the request is
453  * satisfied.
454  * @user_data: (closure): user data to pass to @callback.
455  *
456  * Send a key event to the engine.
457  */
458 void fl_engine_send_key_event(FlEngine* engine,
459  const FlutterKeyEvent* event,
460  GCancellable* cancellable,
461  GAsyncReadyCallback callback,
462  gpointer user_data);
463 
464 /**
465  * fl_engine_send_key_event_finish:
466  * @engine: an #FlEngine.
467  * @result: a #GAsyncResult.
468  * @handled: location to write if this event was handled by the engine.
469  * @error: (allow-none): #GError location to store the error occurring, or %NULL
470  * to ignore. If `error` is not %NULL, `*error` must be initialized (typically
471  * %NULL, but an error from a previous call using GLib error handling is
472  * explicitly valid).
473  *
474  * Completes request started with fl_engine_send_key_event().
475  *
476  * Returns: %TRUE on success.
477  */
478 gboolean fl_engine_send_key_event_finish(FlEngine* engine,
479  GAsyncResult* result,
480  gboolean* handled,
481  GError** error);
482 
483 /**
484  * fl_engine_dispatch_semantics_action:
485  * @engine: an #FlEngine.
486  * @view_id: the view that the event occured on.
487  * @node_id: the semantics action identifier.
488  * @action: the action being dispatched.
489  * @data: (allow-none): data associated with the action.
490  */
491 void fl_engine_dispatch_semantics_action(FlEngine* engine,
492  FlutterViewId view_id,
493  uint64_t node_id,
494  FlutterSemanticsAction action,
495  GBytes* data);
496 
497 /**
498  * fl_engine_send_platform_message_response:
499  * @engine: an #FlEngine.
500  * @handle: handle that was provided in #FlEnginePlatformMessageHandler.
501  * @response: (allow-none): response to send or %NULL for an empty response.
502  * @error: (allow-none): #GError location to store the error occurring, or %NULL
503  * to ignore. If `error` is not %NULL, `*error` must be initialized (typically
504  * %NULL, but an error from a previous call using GLib error handling is
505  * explicitly valid).
506  *
507  * Responds to a platform message.
508  *
509  * Returns: %TRUE on success.
510  */
512  FlEngine* engine,
513  const FlutterPlatformMessageResponseHandle* handle,
514  GBytes* response,
515  GError** error);
516 
517 /**
518  * fl_engine_send_platform_message:
519  * @engine: an #FlEngine.
520  * @channel: channel to send to.
521  * @message: (allow-none): message buffer to send or %NULL for an empty message
522  * @cancellable: (allow-none): a #GCancellable or %NULL.
523  * @callback: (scope async): a #GAsyncReadyCallback to call when the request is
524  * satisfied.
525  * @user_data: (closure): user data to pass to @callback.
526  *
527  * Asynchronously sends a platform message.
528  */
529 void fl_engine_send_platform_message(FlEngine* engine,
530  const gchar* channel,
531  GBytes* message,
532  GCancellable* cancellable,
533  GAsyncReadyCallback callback,
534  gpointer user_data);
535 
536 /**
537  * fl_engine_send_platform_message_finish:
538  * @engine: an #FlEngine.
539  * @result: a #GAsyncResult.
540  * @error: (allow-none): #GError location to store the error occurring, or %NULL
541  * to ignore. If `error` is not %NULL, `*error` must be initialized (typically
542  * %NULL, but an error from a previous call using GLib error handling is
543  * explicitly valid).
544  *
545  * Completes request started with fl_engine_send_platform_message().
546  *
547  * Returns: message response on success or %NULL on error.
548  */
549 GBytes* fl_engine_send_platform_message_finish(FlEngine* engine,
550  GAsyncResult* result,
551  GError** error);
552 
553 /**
554  * fl_engine_get_task_runner:
555  * @engine: an #FlEngine.
556  * @result: a #FlTaskRunner.
557  *
558  * Returns: task runner responsible for scheduling Flutter tasks.
559  */
560 FlTaskRunner* fl_engine_get_task_runner(FlEngine* engine);
561 
562 /**
563  * fl_engine_execute_task:
564  * @engine: an #FlEngine.
565  * @task: a #FlutterTask to execute.
566  *
567  * Executes given Flutter task.
568  */
569 void fl_engine_execute_task(FlEngine* engine, FlutterTask* task);
570 
571 /**
572  * fl_engine_mark_texture_frame_available:
573  * @engine: an #FlEngine.
574  * @texture_id: the identifier of the texture whose frame has been updated.
575  *
576  * Tells the Flutter engine that a new texture frame is available for the given
577  * texture.
578  *
579  * Returns: %TRUE on success.
580  */
581 gboolean fl_engine_mark_texture_frame_available(FlEngine* engine,
582  int64_t texture_id);
583 
584 /**
585  * fl_engine_register_external_texture:
586  * @engine: an #FlEngine.
587  * @texture_id: the identifier of the texture that is available.
588  *
589  * Tells the Flutter engine that a new external texture is available.
590  *
591  * Returns: %TRUE on success.
592  */
593 gboolean fl_engine_register_external_texture(FlEngine* engine,
594  int64_t texture_id);
595 
596 /**
597  * fl_engine_unregister_external_texture:
598  * @engine: an #FlEngine.
599  * @texture_id: the identifier of the texture that is not available anymore.
600  *
601  * Tells the Flutter engine that an existing external texture is not available
602  * anymore.
603  *
604  * Returns: %TRUE on success.
605  */
606 gboolean fl_engine_unregister_external_texture(FlEngine* engine,
607  int64_t texture_id);
608 
609 /**
610  * fl_engine_update_accessibility_features:
611  * @engine: an #FlEngine.
612  * @flags: the features to enable in the accessibility tree.
613  *
614  * Tells the Flutter engine to update the flags on the accessibility tree.
615  */
616 void fl_engine_update_accessibility_features(FlEngine* engine, int32_t flags);
617 
618 /**
619  * fl_engine_request_app_exit:
620  * @engine: an #FlEngine.
621  *
622  * Request the application exits.
623  */
624 void fl_engine_request_app_exit(FlEngine* engine);
625 
626 /**
627  * fl_engine_get_keyboard_manager:
628  * @engine: an #FlEngine.
629  *
630  * Gets the keyboard manager used by this engine.
631  *
632  * Returns: an #FlKeyboardManager.
633  */
634 FlKeyboardManager* fl_engine_get_keyboard_manager(FlEngine* engine);
635 
636 /**
637  * fl_engine_get_text_input_handler:
638  * @engine: an #FlEngine.
639  *
640  * Gets the text input handler used by this engine.
641  *
642  * Returns: an #FlTextInputHandler.
643  */
644 FlTextInputHandler* fl_engine_get_text_input_handler(FlEngine* engine);
645 
646 /**
647  * fl_engine_get_mouse_cursor_handler:
648  * @engine: an #FlEngine.
649  *
650  * Gets the mouse cursor handler used by this engine.
651  *
652  * Returns: an #FlMouseCursorHandler.
653  */
654 FlMouseCursorHandler* fl_engine_get_mouse_cursor_handler(FlEngine* engine);
655 
656 /**
657  * fl_engine_for_id:
658  * @handle: an engine identifier obtained through
659  * PlatformDispatcher.instance.engineId.
660  *
661  * Returns Flutter engine associated with the identifier. The identifier
662  * must be valid and for a running engine otherwise the behavior is
663  * undefined.
664  * Must be called from the main thread.
665  *
666  * Returns: a #FlEngine or NULL.
667  */
668 FlEngine* fl_engine_for_id(int64_t handle);
669 
670 G_END_DECLS
671 
672 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_ENGINE_PRIVATE_H_
const char * message
FlRenderable * renderable
const char FlTextDirection FlAssertiveness gpointer user_data
FlKeyboardManager * fl_engine_get_keyboard_manager(FlEngine *engine)
Definition: fl_engine.cc:1628
gboolean fl_engine_remove_view_finish(FlEngine *engine, GAsyncResult *result, GError **error)
Definition: fl_engine.cc:1056
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)
Definition: fl_engine.cc:1452
gboolean fl_engine_send_platform_message_response(FlEngine *engine, const FlutterPlatformMessageResponseHandle *handle, GBytes *response, GError **error)
Definition: fl_engine.cc:1082
void fl_engine_request_app_exit(FlEngine *engine)
Definition: fl_engine.cc:1623
void fl_engine_send_touch_move_event(FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device)
Definition: fl_engine.cc:1336
void fl_engine_execute_task(FlEngine *engine, FlutterTask *task)
Definition: fl_engine.cc:1596
FlRenderable * fl_engine_get_renderable(FlEngine *engine, FlutterViewId view_id)
Definition: fl_engine.cc:1023
void fl_engine_send_touch_add_event(FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device)
Definition: fl_engine.cc:1394
FlDisplayMonitor * fl_engine_get_display_monitor(FlEngine *engine)
Definition: fl_engine.cc:756
void fl_engine_remove_view(FlEngine *engine, FlutterViewId view_id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Definition: fl_engine.cc:1029
void fl_engine_send_key_event(FlEngine *engine, const FlutterKeyEvent *event, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Definition: fl_engine.cc:1494
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, double rotation, double pressure)
Definition: fl_engine.cc:1229
FlOpenGLManager * fl_engine_get_opengl_manager(FlEngine *engine)
Definition: fl_engine.cc:751
gboolean fl_engine_mark_texture_frame_available(FlEngine *engine, int64_t texture_id)
Definition: fl_engine.cc:1564
GQuark fl_engine_error_quark(void) G_GNUC_CONST
void fl_engine_notify_display_update(FlEngine *engine, const FlutterEngineDisplay *displays, size_t displays_length)
Definition: fl_engine.cc:946
gboolean fl_engine_unregister_external_texture(FlEngine *engine, int64_t texture_id)
Definition: fl_engine.cc:1578
void fl_engine_schedule_frame(FlEngine *engine)
Definition: fl_engine.cc:1185
void fl_engine_set_platform_message_handler(FlEngine *engine, FlEnginePlatformMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
Definition: fl_engine.cc:1063
FlEngine * fl_engine_for_id(int64_t handle)
Definition: fl_engine.cc:726
FlEngineError
@ FL_ENGINE_ERROR_FAILED
void fl_engine_dispatch_semantics_action(FlEngine *engine, FlutterViewId view_id, uint64_t node_id, FlutterSemanticsAction action, GBytes *data)
Definition: fl_engine.cc:1534
void fl_engine_send_platform_message(FlEngine *engine, const gchar *channel, GBytes *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Definition: fl_engine.cc:1114
FlutterRendererType fl_engine_get_renderer_type(FlEngine *engine)
Definition: fl_engine.cc:746
void fl_engine_send_window_metrics_event(FlEngine *engine, FlutterEngineDisplayId display_id, FlutterViewId view_id, size_t min_width, size_t min_height, size_t max_width, size_t max_height, double pixel_ratio)
Definition: fl_engine.cc:1197
void fl_engine_send_touch_down_event(FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device)
Definition: fl_engine.cc:1307
gboolean fl_engine_register_external_texture(FlEngine *engine, int64_t texture_id)
Definition: fl_engine.cc:1571
FlutterEngineProcTable * fl_engine_get_embedder_api(FlEngine *engine)
Definition: fl_engine.cc:942
gboolean fl_engine_add_view_finish(FlEngine *engine, GAsyncResult *result, GError **error)
Definition: fl_engine.cc:1016
void fl_engine_send_touch_remove_event(FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device)
Definition: fl_engine.cc:1423
void fl_engine_send_touch_cancel_event(FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device)
Definition: fl_engine.cc:1365
GBytes * fl_engine_send_platform_message_finish(FlEngine *engine, GAsyncResult *result, GError **error)
Definition: fl_engine.cc:1176
void fl_engine_set_implicit_view(FlEngine *engine, FlRenderable *renderable)
Definition: fl_engine.cc:959
FlTextInputHandler * fl_engine_get_text_input_handler(FlEngine *engine)
Definition: fl_engine.cc:1633
void fl_engine_send_touch_up_event(FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device)
Definition: fl_engine.cc:1278
void fl_engine_update_accessibility_features(FlEngine *engine, int32_t flags)
Definition: fl_engine.cc:1609
gboolean(* FlEnginePlatformMessageHandler)(FlEngine *engine, const gchar *channel, GBytes *message, const FlutterPlatformMessageResponseHandle *response_handle, gpointer user_data)
FlEngine * fl_engine_new_with_binary_messenger(FlBinaryMessenger *binary_messenger)
Definition: fl_engine.cc:736
gboolean fl_engine_send_key_event_finish(FlEngine *engine, GAsyncResult *result, gboolean *handled, GError **error)
Definition: fl_engine.cc:1517
gboolean fl_engine_start(FlEngine *engine, GError **error)
Definition: fl_engine.cc:761
FlutterViewId fl_engine_add_view(FlEngine *engine, FlRenderable *renderable, size_t min_width, size_t min_height, size_t max_width, size_t max_height, double pixel_ratio, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Definition: fl_engine.cc:963
FlMouseCursorHandler * fl_engine_get_mouse_cursor_handler(FlEngine *engine)
Definition: fl_engine.cc:1638
FlTaskRunner * fl_engine_get_task_runner(FlEngine *engine)
Definition: fl_engine.cc:1591
const uint8_t uint32_t uint32_t GError ** error
G_BEGIN_DECLS FlSubsurface size_t size_t gint scale
G_BEGIN_DECLS FlutterViewId view_id
int64_t texture_id