| Flutter Linux Embedder |

fl_renderable.cc
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 #include "flutter/shell/platform/linux/fl_renderable.h"
6
7 G_DEFINE_INTERFACE(FlRenderable, fl_renderable, G_TYPE_OBJECT)
8
9 static void fl_renderable_default_init(FlRenderableInterface* iface) {}
10
11 void fl_renderable_redraw(FlRenderable* self) {
12 g_return_if_fail(FL_IS_RENDERABLE(self));
13
14 FL_RENDERABLE_GET_IFACE(self)->redraw(self);
15 }
16
17 void fl_renderable_make_current(FlRenderable* self) {
18 g_return_if_fail(FL_IS_RENDERABLE(self));
19
20 FL_RENDERABLE_GET_IFACE(self)->make_current(self);
21 }
G_DEFINE_INTERFACE
G_DEFINE_INTERFACE(FlKeyboardViewDelegate, fl_keyboard_view_delegate, G_TYPE_OBJECT) static void fl_keyboard_view_delegate_default_init(FlKeyboardViewDelegateInterface *iface)
Definition: fl_keyboard_view_delegate.cc:7
fl_renderable.h
fl_renderable_default_init
static void fl_renderable_default_init(FlRenderableInterface *iface)
Definition: fl_renderable.cc:9
fl_renderable_redraw
void fl_renderable_redraw(FlRenderable *self)
Definition: fl_renderable.cc:11
fl_renderable_make_current
void fl_renderable_make_current(FlRenderable *self)
Definition: fl_renderable.cc:17