1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QMINIMALEGLINTEGRATION_H
5#define QMINIMALEGLINTEGRATION_H
6
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformscreen.h>
9
10QT_BEGIN_NAMESPACE
11
12class QMinimalEglIntegration : public QPlatformIntegration
13{
14public:
15 QMinimalEglIntegration();
16 ~QMinimalEglIntegration();
17
18 bool hasCapability(QPlatformIntegration::Capability cap) const override;
19
20 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
21 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
22#ifndef QT_NO_OPENGL
23 QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const override;
24#endif
25 QPlatformFontDatabase *fontDatabase() const override;
26
27 QAbstractEventDispatcher *createEventDispatcher() const override;
28
29 QVariant styleHint(QPlatformIntegration::StyleHint hint) const override;
30
31private:
32 QPlatformFontDatabase *mFontDb;
33 QPlatformScreen *mScreen;
34};
35
36QT_END_NAMESPACE
37
38#endif // QMINIMALEGLINTEGRATION_H
39

source code of qtbase/src/plugins/platforms/minimalegl/qminimaleglintegration.h