Go to the source code of this file.
Classes | |
struct | _FlDartProject |
Functions | |
static gchar * | get_executable_dir () |
static void | fl_dart_project_dispose (GObject *object) |
static void | fl_dart_project_class_init (FlDartProjectClass *klass) |
static void | fl_dart_project_init (FlDartProject *self) |
G_MODULE_EXPORT FlDartProject * | fl_dart_project_new () |
G_MODULE_EXPORT void | fl_dart_project_set_aot_library_path (FlDartProject *self, const gchar *path) |
const G_MODULE_EXPORT gchar * | fl_dart_project_get_aot_library_path (FlDartProject *self) |
G_MODULE_EXPORT void | fl_dart_project_set_assets_path (FlDartProject *self, gchar *path) |
const G_MODULE_EXPORT gchar * | fl_dart_project_get_assets_path (FlDartProject *self) |
G_MODULE_EXPORT void | fl_dart_project_set_icu_data_path (FlDartProject *self, gchar *path) |
const G_MODULE_EXPORT gchar * | fl_dart_project_get_icu_data_path (FlDartProject *self) |
G_MODULE_EXPORT gchar ** | fl_dart_project_get_dart_entrypoint_arguments (FlDartProject *self) |
G_MODULE_EXPORT void | fl_dart_project_set_dart_entrypoint_arguments (FlDartProject *self, char **argv) |
|
static |
Definition at line 44 of file fl_dart_project.cc.
References fl_dart_project_dispose().
|
static |
const G_MODULE_EXPORT gchar* fl_dart_project_get_aot_library_path | ( | FlDartProject * | project | ) |
fl_dart_project_get_aot_library_path: @project: an #FlDartProject.
Gets the path to the AOT library in the Flutter application.
Returns: (type filename): an absolute file path, e.g. "/projects/my_dart_project/lib/libapp.so".
Definition at line 72 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST().
const G_MODULE_EXPORT gchar* fl_dart_project_get_assets_path | ( | FlDartProject * | project | ) |
fl_dart_project_get_assets_path: @project: an #FlDartProject.
Gets the path to the directory containing the assets used in the Flutter application.
Returns: (type filename): an absolute directory path, e.g. "/projects/my_dart_project/data/flutter_assets".
Definition at line 85 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST().
G_MODULE_EXPORT gchar** fl_dart_project_get_dart_entrypoint_arguments | ( | FlDartProject * | project | ) |
fl_dart_project_get_dart_entrypoint_arguments: @project: an #FlDartProject.
Gets the command line arguments to be passed through to the Dart entrypoint function.
Returns: a NULL-terminated array of strings containing the command line arguments to be passed to the Dart entrypoint.
Definition at line 104 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST().
const G_MODULE_EXPORT gchar* fl_dart_project_get_icu_data_path | ( | FlDartProject * | project | ) |
fl_dart_project_get_icu_data_path: @project: an #FlDartProject.
Gets the path to the ICU data file in the Flutter application.
Returns: (type filename): an absolute file path, e.g. "/projects/my_dart_project/data/icudtl.dat".
Definition at line 98 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST().
|
static |
Definition at line 48 of file fl_dart_project.cc.
G_MODULE_EXPORT FlDartProject* fl_dart_project_new | ( | ) |
FlDartProject:
#FlDartProject represents a Dart project. It is used to provide information about the application when creating an #FlView. fl_dart_project_new:
Creates a Flutter project for the currently running executable. The following data files are required relative to the location of the executable:
Returns: a new #FlDartProject.
Definition at line 50 of file fl_dart_project.cc.
References get_executable_dir().
Referenced by make_mock_engine(), and TEST().
G_MODULE_EXPORT void fl_dart_project_set_aot_library_path | ( | FlDartProject * | project, |
const gchar * | path | ||
) |
fl_dart_project_set_aot_library_path: @project: an #FlDartProject. @path: the absolute path to the AOT library in the Flutter application.
Sets the path to the AOT library in the Flutter application, which is the path to libapp.so. By default this is lib/libapp.so relative to the executable directory.
Definition at line 65 of file fl_dart_project.cc.
Referenced by TEST().
G_MODULE_EXPORT void fl_dart_project_set_assets_path | ( | FlDartProject * | project, |
gchar * | path | ||
) |
fl_dart_project_set_assets_path: @project: an #FlDartProject. @path: the absolute path to the assets directory.
Sets the path to the directory containing the assets used in the Flutter application. By default, this is the data/flutter_assets subdirectory relative to the executable directory.
Definition at line 78 of file fl_dart_project.cc.
Referenced by TEST().
G_MODULE_EXPORT void fl_dart_project_set_dart_entrypoint_arguments | ( | FlDartProject * | project, |
char ** | argv | ||
) |
fl_dart_project_set_dart_entrypoint_arguments: @project: an #FlDartProject. @argv: a pointer to a NULL-terminated array of C strings containing the command line arguments.
Sets the command line arguments to be passed through to the Dart entrypoint function.
Definition at line 110 of file fl_dart_project.cc.
Referenced by TEST().
G_MODULE_EXPORT void fl_dart_project_set_icu_data_path | ( | FlDartProject * | project, |
gchar * | path | ||
) |
fl_dart_project_set_icu_data_path: @project: an #FlDartProject. @path: the absolute path to the ICU data file.
Sets the path to the ICU data file used in the Flutter application. By default, this is data/icudtl.dat relative to the executable directory.
Definition at line 91 of file fl_dart_project.cc.
Referenced by TEST().
|
static |
Definition at line 21 of file fl_dart_project.cc.
References error.
Referenced by fl_dart_project_new().