Layer-shell surface manager with synchronous QML loading and Vulkan wiring.
Higher-level surface manager built on top of `phosphor-layer`. Given a SurfaceConfig, SurfaceManager::createSurface() warms up a QML scene, creates the layer-shell window, attaches a caller-owned or library-managed QVulkanInstance, and hands back a ready-to-show Surface*. This is what app code actually instantiates when it needs a zone overlay, a drag ghost, or any layer-shell QML scene.
| Type | Purpose |
|---|---|
| PhosphorSurfaces::SurfaceManager | Factory and owner for layer-shell surfaces. |
| PhosphorSurfaces::SurfaceManagerConfig | QQmlEngine hook, pipeline-cache path, Vulkan instance, Vulkan API version. |
using namespace PhosphorSurfaces;
SurfaceManagerConfig cfg;
cfg.surfaceFactory = factory; // from phosphor-layer
cfg.engineConfigurator = [](QQmlEngine& e) { /* imports, context props */ };
cfg.pipelineCachePath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
SurfaceManager mgr(std::move(cfg));
PhosphorLayer::SurfaceConfig surfaceCfg = /* screen, role, qml URL */;
auto* surface = mgr.createSurface(surfaceCfg, /*parent*/ this);