Files
cesiumflutter/linux/include/cesiumjs/cesiumjs_plugin.h
T

28 lines
901 B
C
Raw Normal View History

2026-11-07 14:39:59 +01:00
#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_