| Flutter Linux Embedder |

Functions
fl_engine.h File Reference
`#include <glib-object.h>`
`#include <gmodule.h>`
`#include "fl_binary_messenger.h"`
`#include "fl_dart_project.h"`
`#include "fl_texture_registrar.h"`

Go to the source code of this file.

## Functions
G_BEGIN_DECLS G_MODULE_EXPORT FlEngine * | fl_engine_new (FlDartProject *project)
FlEngine * | fl_engine_new_headless (FlDartProject *project)
FlBinaryMessenger * | fl_engine_get_binary_messenger (FlEngine *engine)
FlTextureRegistrar * | fl_engine_get_texture_registrar (FlEngine *engine)

## Function Documentation

## ◆ fl_engine_get_binary_messenger()

FlBinaryMessenger* fl_engine_get_binary_messenger | ( | FlEngine * | engine | ) |

fl_engine_get_binary_messenger: @engine: an #FlEngine.

Gets the messenger to communicate with this engine.

Returns: an #FlBinaryMessenger.

Definition at line 1451 of file fl_engine.cc.

1452 {
1453 g_return_val_if_fail(FL_IS_ENGINE(self), nullptr);
1454 return self->binary_messenger;
1455 }

Referenced by fl_keyboard_manager_new(), fl_settings_handler_new(), fl_view_get_registrar_for_plugin(), fl_windowing_handler_new(), realize_cb(), and TEST().

## ◆ fl_engine_get_texture_registrar()

FlTextureRegistrar* fl_engine_get_texture_registrar | ( | FlEngine * | engine | ) |

fl_engine_get_texture_registrar: @engine: an #FlEngine.

Gets the texture registrar for registering textures.

Returns: an #FlTextureRegistrar.

Definition at line 1469 of file fl_engine.cc.

1470 {
1471 g_return_val_if_fail(FL_IS_ENGINE(self), nullptr);
1472 return self->texture_registrar;
1473 }

Referenced by fl_view_get_registrar_for_plugin().

## ◆ fl_engine_new()

G_BEGIN_DECLS G_MODULE_EXPORT FlEngine* fl_engine_new | ( | FlDartProject * | project | ) |

FlEngine:

#FlEngine is an object that contains a running Flutter engine. fl_engine_new: @project: an #FlDartProject.

Creates new Flutter engine.

Returns: a new #FlEngine.

Definition at line 697 of file fl_engine.cc.

697 {
698 return fl_engine_new_full(project, nullptr);
699 }
fl_engine_new_full
static FlEngine * fl_engine_new_full(FlDartProject *project, FlBinaryMessenger *binary_messenger)
Definition: fl_engine.cc:654

References fl_engine_new_full().

Referenced by fl_engine_new_headless(), fl_view_new(), FlAccessibleNodeTest::SetUp(), and TEST().

## ◆ fl_engine_new_headless()

FlEngine* fl_engine_new_headless | ( | FlDartProject * | project | ) |

fl_engine_new_headless: @project: an #FlDartProject.

Creates new Flutter engine running in headless mode.

Returns: a new #FlEngine.

Definition at line 707 of file fl_engine.cc.

707 {
708 return fl_engine_new(project);
709 }
fl_engine_new
G_MODULE_EXPORT FlEngine * fl_engine_new(FlDartProject *project)
Definition: fl_engine.cc:697

References fl_engine_new().