Flutter Linux Embedder
fl_texture.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 
7 
8 #include <gmodule.h>
9 #include <cstdio>
10 
11 G_DEFINE_INTERFACE(FlTexture, fl_texture, G_TYPE_OBJECT)
12 
13 static void fl_texture_default_init(FlTextureInterface* self) {}
14 
15 void fl_texture_set_id(FlTexture* self, int64_t id) {
16  g_return_if_fail(FL_IS_TEXTURE(self));
17  FL_TEXTURE_GET_IFACE(self)->set_id(self, id);
18 }
19 
20 G_MODULE_EXPORT int64_t fl_texture_get_id(FlTexture* self) {
21  g_return_val_if_fail(FL_IS_TEXTURE(self), -1);
22  return FL_TEXTURE_GET_IFACE(self)->get_id(self);
23 }
fl_texture_set_id
void fl_texture_set_id(FlTexture *self, int64_t id)
Definition: fl_texture.cc:15
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_texture_get_id
G_MODULE_EXPORT int64_t fl_texture_get_id(FlTexture *self)
Definition: fl_texture.cc:20
fl_texture_private.h
fl_texture.h
fl_texture_default_init
static void fl_texture_default_init(FlTextureInterface *self)
Definition: fl_texture.cc:13