![]() |
Flutter Engine
The Flutter Engine
|
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS G_MODULE_EXPORT | G_DECLARE_INTERFACE (FlTextureRegistrar, fl_texture_registrar, FL, TEXTURE_REGISTRAR, GObject) struct _FlTextureRegistrarInterface |
gboolean | fl_texture_registrar_register_texture (FlTextureRegistrar *registrar, FlTexture *texture) |
gboolean | fl_texture_registrar_mark_texture_frame_available (FlTextureRegistrar *registrar, FlTexture *texture) |
gboolean | fl_texture_registrar_unregister_texture (FlTextureRegistrar *registrar, FlTexture *texture) |
gboolean fl_texture_registrar_mark_texture_frame_available | ( | FlTextureRegistrar * | registrar, |
FlTexture * | texture | ||
) |
fl_texture_registrar_mark_texture_frame_available: @registrar: an #FlTextureRegistrar. @texture: the texture that has a frame available.
Notifies the flutter engine that the texture object has updated and needs to be rerendered.
Returns: TRUE on success.
Definition at line 198 of file fl_texture_registrar.cc.
gboolean fl_texture_registrar_register_texture | ( | FlTextureRegistrar * | registrar, |
FlTexture * | texture | ||
) |
FlTextureRegistrar:
#FlTextureRegistrar is used when registering textures.
Flutter Framework accesses your texture by the related unique texture ID. To draw your texture in Dart, you should add Texture widget in your widget tree with the same texture ID. Use platform channels to send this unique texture ID to the Dart side. fl_texture_registrar_register_texture: @registrar: an #FlTextureRegistrar. @texture: an #FlTexture for registration.
Registers a texture.
Returns: TRUE on success.
Definition at line 182 of file fl_texture_registrar.cc.
gboolean fl_texture_registrar_unregister_texture | ( | FlTextureRegistrar * | registrar, |
FlTexture * | texture | ||
) |
fl_texture_registrar_unregister_texture: @registrar: an #FlTextureRegistrar. @texture: the texture being unregistered.
Unregisters an existing texture object.
Returns: TRUE on success.
Definition at line 207 of file fl_texture_registrar.cc.
G_BEGIN_DECLS G_MODULE_EXPORT G_DECLARE_INTERFACE | ( | FlTextureRegistrar | , |
fl_texture_registrar | , | ||
FL | , | ||
TEXTURE_REGISTRAR | , | ||
GObject | |||
) |
Definition at line 21 of file fl_texture_registrar.h.