| Flutter Linux Embedder |

Functions
fl_plugin_registrar_private.h File Reference
`#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"`
`#include "flutter/shell/platform/linux/public/flutter_linux/fl_plugin_registrar.h"`

Go to the source code of this file.

## Functions
G_BEGIN_DECLS FlPluginRegistrar * | fl_plugin_registrar_new (FlView *view, FlBinaryMessenger *messenger, FlTextureRegistrar *texture_registrar)

## Function Documentation

## ◆ fl_plugin_registrar_new()

G_BEGIN_DECLS 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 84 of file fl_plugin_registrar.cc.

87 {
88 g_return_val_if_fail(view == nullptr || FL_IS_VIEW(view), nullptr);
89 g_return_val_if_fail(FL_IS_BINARY_MESSENGER(messenger), nullptr);
90 g_return_val_if_fail(FL_IS_TEXTURE_REGISTRAR(texture_registrar), nullptr);
91
92 FlPluginRegistrarImpl* self = FL_PLUGIN_REGISTRAR_IMPL(
93 g_object_new(fl_plugin_registrar_impl_get_type(), nullptr));
94
95 // Added to stop compiler complaining about an unused function.
96 FL_IS_PLUGIN_REGISTRAR_IMPL(self);
97
98 g_weak_ref_init(&self->view, view);
99 self->messenger = FL_BINARY_MESSENGER(g_object_ref(messenger));
100 self->texture_registrar =
101 FL_TEXTURE_REGISTRAR(g_object_ref(texture_registrar));
102
103 return FL_PLUGIN_REGISTRAR(self);
104 }
view
FlView * view
Definition: fl_application.cc:36
self
g_cond_signal & self
Definition: fl_compositor_software.cc:67

References self, and view.

Referenced by fl_engine_get_registrar_for_plugin(), and fl_view_get_registrar_for_plugin().