#include "flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registrar.h"
#include "flutter/shell/platform/linux/fl_plugin_registrar_private.h"
#include <gmodule.h>
Go to the source code of this file.
Functions | |
G_DECLARE_FINAL_TYPE (FlPluginRegistrarImpl, fl_plugin_registrar_impl, FL, PLUGIN_REGISTRAR_IMPL, GObject) struct _FlPluginRegistrarImpl | |
static void | fl_plugin_registrar_impl_iface_init (FlPluginRegistrarInterface *iface) |
G_DEFINE_TYPE_WITH_CODE (FlPluginRegistrarImpl, fl_plugin_registrar_impl, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_plugin_registrar_get_type(), fl_plugin_registrar_impl_iface_init)) static void fl_plugin_registrar_default_init(FlPluginRegistrarInterface *iface) | |
static void | fl_plugin_registrar_impl_dispose (GObject *object) |
static void | fl_plugin_registrar_impl_class_init (FlPluginRegistrarImplClass *klass) |
static FlBinaryMessenger * | get_messenger (FlPluginRegistrar *registrar) |
static FlTextureRegistrar * | get_texture_registrar (FlPluginRegistrar *registrar) |
static FlView * | get_view (FlPluginRegistrar *registrar) |
static void | fl_plugin_registrar_impl_init (FlPluginRegistrarImpl *self) |
FlPluginRegistrar * | fl_plugin_registrar_new (FlView *view, FlBinaryMessenger *messenger, FlTextureRegistrar *texture_registrar) |
G_MODULE_EXPORT FlBinaryMessenger * | fl_plugin_registrar_get_messenger (FlPluginRegistrar *self) |
G_MODULE_EXPORT FlTextureRegistrar * | fl_plugin_registrar_get_texture_registrar (FlPluginRegistrar *self) |
G_MODULE_EXPORT FlView * | fl_plugin_registrar_get_view (FlPluginRegistrar *self) |
G_MODULE_EXPORT FlBinaryMessenger* fl_plugin_registrar_get_messenger | ( | FlPluginRegistrar * | registrar | ) |
FlPluginRegistrar:
#FlPluginRegistrar is used when registering new plugins. fl_plugin_registrar_get_messenger: @registrar: an #FlPluginRegistrar.
Gets the messenger this plugin can communicate with.
Returns: an #FlBinaryMessenger.
Definition at line 113 of file fl_plugin_registrar.cc.
Referenced by TEST().
G_MODULE_EXPORT FlTextureRegistrar* fl_plugin_registrar_get_texture_registrar | ( | FlPluginRegistrar * | registrar | ) |
fl_plugin_registrar_get_texture_registrar: @registrar: an #FlPluginRegistrar.
Gets the texture registrar this plugin can communicate with.
Returns: an #FlTextureRegistrar.
Definition at line 120 of file fl_plugin_registrar.cc.
Referenced by TEST().
G_MODULE_EXPORT FlView* fl_plugin_registrar_get_view | ( | FlPluginRegistrar * | registrar | ) |
fl_plugin_registrar_get_view: @registrar: an #FlPluginRegistrar.
Get the view that Flutter is rendering with.
Returns: (allow-none): an #FlView or NULL if running in headless mode.
Definition at line 127 of file fl_plugin_registrar.cc.
|
static |
Definition at line 58 of file fl_plugin_registrar.cc.
References fl_plugin_registrar_impl_dispose().
|
static |
Definition at line 44 of file fl_plugin_registrar.cc.
Referenced by fl_plugin_registrar_impl_class_init().
|
static |
Definition at line 78 of file fl_plugin_registrar.cc.
References get_messenger(), get_texture_registrar(), and get_view().
|
static |
Definition at line 85 of file fl_plugin_registrar.cc.
FlPluginRegistrar* fl_plugin_registrar_new | ( | FlView * | view, |
FlBinaryMessenger * | messenger, | ||
FlTextureRegistrar * | texture_registrar | ||
) |
fl_plugin_registrar_new: @view: (allow-none): the #FlView that is being plugged into or NULL for headless mode. @messenger: the #FlBinaryMessenger to communicate with. @texture_registrar: the #FlTextureRegistrar to communicate with.
Creates a new #FlPluginRegistrar.
Returns: a new #FlPluginRegistrar.
Definition at line 87 of file fl_plugin_registrar.cc.
References view.
Referenced by fl_engine_get_registrar_for_plugin(), and fl_view_get_registrar_for_plugin().
G_DECLARE_FINAL_TYPE | ( | FlPluginRegistrarImpl | , |
fl_plugin_registrar_impl | , | ||
FL | , | ||
PLUGIN_REGISTRAR_IMPL | , | ||
GObject | |||
) |
G_DEFINE_TYPE_WITH_CODE | ( | FlPluginRegistrarImpl | , |
fl_plugin_registrar_impl | , | ||
G_TYPE_OBJECT | , | ||
G_IMPLEMENT_INTERFACE(fl_plugin_registrar_get_type(), fl_plugin_registrar_impl_iface_init) | |||
) |
Definition at line 34 of file fl_plugin_registrar.cc.
|
static |
Definition at line 63 of file fl_plugin_registrar.cc.
Referenced by fl_plugin_registrar_impl_iface_init().
|
static |
Definition at line 68 of file fl_plugin_registrar.cc.
Referenced by fl_plugin_registrar_impl_iface_init().
|
static |
Definition at line 73 of file fl_plugin_registrar.cc.
Referenced by fl_plugin_registrar_impl_iface_init().