Flutter Linux Embedder
fl_view_monitor.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_VIEW_MONITOR_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_VIEW_MONITOR_H_
7 
9 
10 G_BEGIN_DECLS
11 
12 G_DECLARE_FINAL_TYPE(FlViewMonitor, fl_view_monitor, FL, VIEW_MONITOR, GObject);
13 
14 /**
15  * fl_view_monitor_new:
16  * @view: the view being monitored.
17  * @on_first_frame: the function to call when the first frame is rendered.
18  *
19  * Helper class to allow the Flutter engine to monitor a FlView using FFI.
20  * Callbacks are called in the isolate this class was created with.
21  *
22  * Returns: a new #FlViewMonitor.
23  */
24 FlViewMonitor* fl_view_monitor_new(FlView* view, void (*on_first_frame)(void));
25 
26 G_END_DECLS
27 
28 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_VIEW_MONITOR_H_
FlView * view
FlViewMonitor * fl_view_monitor_new(FlView *view, void(*on_first_frame)(void))
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlViewMonitor, fl_view_monitor, FL, VIEW_MONITOR, GObject)