Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsgopenvgadaptation.cpp
Go to the documentation of this file.
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
5
8
10
15
16QStringList QSGOpenVGAdaptation::keys() const
17{
18 return QStringList() << QLatin1String("openvg");
19}
20
21QSGContext *QSGOpenVGAdaptation::create(const QString &key) const
22{
23 Q_UNUSED(key);
24 if (!instance)
25 instance = new QSGOpenVGContext();
26 return instance;
27}
28
30{
31 return new QSGOpenVGRenderLoop();
32}
33
35{
36 Q_UNUSED(key);
37 return 0;
38}
39
40QSGOpenVGContext *QSGOpenVGAdaptation::instance = nullptr;
41
42QT_END_NAMESPACE
QObject * parent
Definition qobject.h:73
\inmodule QtCore
Definition qobject.h:103
QSGContext * create(const QString &key) const override
QSGRenderLoop * createWindowManager() override
Flags flags(const QString &key) const override
Combined button and popup list for selecting options.