| Flutter Linux Embedder |

fl_gl_area.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_GL_AREA_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_GL_AREA_H_
7
8 #include <gtk/gtk.h>
9
10 #include "flutter/shell/platform/linux/fl_backing_store_provider.h"
11
12 G_BEGIN_DECLS
13
14 G_DECLARE_FINAL_TYPE(FlGLArea, fl_gl_area, FL, GL_AREA, GtkWidget)
15
16 /**
17 * FlGLArea:
18 *
19 * #FlGLArea is a OpenGL drawing area that shows Flutter backing store Layer.
20 */
21
22 /**
23 * fl_gl_area_new:
24 * @context: an #GdkGLContext.
25 *
26 * Creates a new #FlGLArea widget.
27 *
28 * Returns: the newly created #FlGLArea widget.
29 */
30 GtkWidget* fl_gl_area_new(GdkGLContext* context);
31
32 /**
33 * fl_gl_area_queue_render:
34 * @area: an #FlGLArea.
35 * @textures: (transfer none) (element-type FlBackingStoreProvider): a list of
36 * #FlBackingStoreProvider.
37 *
38 * Queues textures to be drawn later.
39 */
40 void fl_gl_area_queue_render(FlGLArea* area, GPtrArray* textures);
41
42 G_END_DECLS
43
44 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_GL_AREA_H_
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlAccessibilityPlugin, fl_accessibility_plugin, FL, ACCESSIBILITY_PLUGIN, GObject)
fl_gl_area_queue_render
void fl_gl_area_queue_render(FlGLArea *area, GPtrArray *textures)
Definition: fl_gl_area.cc:129
FL
FL
Definition: fl_binary_messenger.cc:27
fl_gl_area_new
G_BEGIN_DECLS GtkWidget * fl_gl_area_new(GdkGLContext *context)
Definition: fl_gl_area.cc:121
fl_backing_store_provider.h