| Flutter Linux Embedder |

fl_windowing_handler.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_WINDOWING_HANDLER_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_WINDOWING_HANDLER_H_
7
8 #include <gtk/gtk.h>
9
10 #include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
11 #include "flutter/shell/platform/linux/public/flutter_linux/fl_view.h"
12
13 G_BEGIN_DECLS
14
15 G_DECLARE_DERIVABLE_TYPE(FlWindowingHandler,
16 fl_windowing_handler,
17 FL,
18 WINDOWING_HANDLER,
19 GObject);
20
21 struct _FlWindowingHandlerClass {
22 GObjectClass parent_class;
23
24 GtkWindow* (*create_window)(FlWindowingHandler* handler, FlView* view);
25 };
26
27 /**
28 * FlWindowingHandler:
29 *
30 * #FlWindowingHandler is a handler that implements the shell side
31 * of SystemChannels.windowing from the Flutter services library.
32 */
33
34 /**
35 * fl_windowing_handler_new:
36 * @engine: an #FlEngine.
37 *
38 * Creates a new handler that implements SystemChannels.windowing from the
39 * Flutter services library.
40 *
41 * Returns: a new #FlWindowingHandler
42 */
43 FlWindowingHandler* fl_windowing_handler_new(FlEngine* engine);
44
45 G_END_DECLS
46
47 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_WINDOWING_HANDLER_H_
view
FlView * view
Definition: fl_application.cc:36
FL
FL
Definition: fl_binary_messenger.cc:27
fl_engine.h
fl_view.h
fl_windowing_handler_new
FlWindowingHandler * fl_windowing_handler_new(FlEngine *engine)
Definition: fl_windowing_handler.cc:260
G_DECLARE_DERIVABLE_TYPE
G_BEGIN_DECLS G_DECLARE_DERIVABLE_TYPE(FlWindowingHandler, fl_windowing_handler, FL, WINDOWING_HANDLER, GObject)
_FlWindowingHandlerClass
Definition: fl_windowing_handler.h:21
_FlWindowingHandlerClass::parent_class
GObjectClass parent_class
Definition: fl_windowing_handler.h:22