Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
IQmlEngineProvider.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <PhosphorLayer/phosphorlayer_export.h>
7
8#include <QtGlobal>
9
10QT_BEGIN_NAMESPACE
11class QQmlEngine;
12QT_END_NAMESPACE
13
14namespace PhosphorLayer {
15
16struct SurfaceConfig;
17
39class PHOSPHORLAYER_EXPORT IQmlEngineProvider
40{
41public:
42 IQmlEngineProvider() = default;
43 virtual ~IQmlEngineProvider() = default;
44 Q_DISABLE_COPY_MOVE(IQmlEngineProvider)
45
46
58 virtual QQmlEngine* engineForSurface(const SurfaceConfig& cfg) = 0;
59
67 virtual void releaseEngine(QQmlEngine* engine) = 0;
68};
69
70} // namespace PhosphorLayer
virtual ~IQmlEngineProvider()=default
virtual QQmlEngine * engineForSurface(const SurfaceConfig &cfg)=0
Return the engine for a surface being constructed.
virtual void releaseEngine(QQmlEngine *engine)=0
Called when a Surface that previously received an engine is destroyed.
Definition SurfaceAnimator.h:26
Immutable per-surface configuration passed to SurfaceFactory::create().
Definition SurfaceConfig.h:47