first commit
This commit is contained in:
commit
c069b8945d
34 files changed
+2424
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#ifndef FLUTTER_PLUGIN_CESIUMJS_PLUGIN_H_
|
||||
#define FLUTTER_PLUGIN_CESIUMJS_PLUGIN_H_
|
||||
|
||||
#include <flutter_linux/flutter_linux.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef FLUTTER_PLUGIN_IMPL
|
||||
#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default")))
|
||||
#else
|
||||
#define FLUTTER_PLUGIN_EXPORT
|
||||
#endif
|
||||
|
||||
// Native side of the `cesiumjs/webview` method channel.
|
||||
//
|
||||
// Flutter on Linux has no platform-view support, so each CesiumJS web view is
|
||||
// a real WebKitGTK widget stacked on top of the FlView inside a GtkOverlay.
|
||||
// The Dart `CesiumViewer` widget reports its on-screen rectangle and the
|
||||
// native widget is positioned to match.
|
||||
//
|
||||
// If the FlView is not already inside a GtkOverlay, registration wraps it in
|
||||
// one, so host apps need no runner changes.
|
||||
FLUTTER_PLUGIN_EXPORT void cesiumjs_plugin_register_with_registrar(
|
||||
FlPluginRegistrar* registrar);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_PLUGIN_CESIUMJS_PLUGIN_H_
|
||||
Reference in new issue
Block a user