forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfl_renderable.h
More file actions
51 lines (39 loc) · 1.26 KB
/
fl_renderable.h
File metadata and controls
51 lines (39 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_RENDERABLE_H_
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_RENDERABLE_H_
#include <gdk/gdk.h>
#include "flutter/shell/platform/embedder/embedder.h"
G_BEGIN_DECLS
G_DECLARE_INTERFACE(FlRenderable, fl_renderable, FL, RENDERABLE, GObject);
/**
* FlRenderable:
*
* An interface for a class that can render views from #FlRenderer.
*
* This interface is typically implemented by #FlView and is provided to make
* #FlRenderer easier to test.
*/
struct _FlRenderableInterface {
GTypeInterface g_iface;
void (*redraw)(FlRenderable* renderable);
void (*make_current)(FlRenderable* renderable);
};
/**
* fl_renderable_redraw:
* @renderable: an #FlRenderable
*
* Indicate the renderable needs to redraw. When ready, the renderable should
* call fl_renderer_draw().
*/
void fl_renderable_redraw(FlRenderable* renderable);
/**
* fl_renderable_make_current:
* @renderable: an #FlRenderable
*
* Make this renderable the current OpenGL context.
*/
void fl_renderable_make_current(FlRenderable* renderable);
G_END_DECLS
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_RENDERABLE_H_