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
4
#
include
"qsgopenvgadaptation_p.h"
5
6
#
include
"qsgopenvgcontext_p.h"
7
#
include
"qsgopenvgrenderloop_p.h"
8
9
QT_BEGIN_NAMESPACE
10
11
QSGOpenVGAdaptation
::
QSGOpenVGAdaptation
(
QObject
*
parent
)
12
:
QSGContextPlugin
(
parent
)
13
{
14
}
15
16
QStringList QSGOpenVGAdaptation::keys()
const
17
{
18
return
QStringList() << QLatin1String(
"openvg"
);
19
}
20
21
QSGContext *
QSGOpenVGAdaptation
::
create
(
const
QString &key)
const
22
{
23
Q_UNUSED(key);
24
if
(!instance)
25
instance =
new
QSGOpenVGContext
();
26
return
instance;
27
}
28
29
QSGRenderLoop *
QSGOpenVGAdaptation
::
createWindowManager
()
30
{
31
return
new
QSGOpenVGRenderLoop
(
)
;
32
}
33
34
QSGContextFactoryInterface
::
Flags
QSGOpenVGAdaptation
::
flags
(
const
QString &key)
const
35
{
36
Q_UNUSED(key);
37
return
0;
38
}
39
40
QSGOpenVGContext
*
QSGOpenVGAdaptation
::instance =
nullptr
;
41
42
QT_END_NAMESPACE
QObjectData::parent
QObject * parent
Definition
qobject.h:73
QObject
\inmodule QtCore
Definition
qobject.h:103
QSGOpenVGAdaptation
Definition
qsgopenvgadaptation_p.h:16
QSGOpenVGAdaptation::create
QSGContext * create(const QString &key) const override
Definition
qsgopenvgadaptation.cpp:21
QSGOpenVGAdaptation::createWindowManager
QSGRenderLoop * createWindowManager() override
Definition
qsgopenvgadaptation.cpp:29
QSGOpenVGAdaptation::flags
Flags flags(const QString &key) const override
Definition
qsgopenvgadaptation.cpp:34
QSGOpenVGContext
Definition
qsgopenvgcontext_p.h:53
QSGOpenVGRenderLoop
Definition
qsgopenvgrenderloop_p.h:14
QSGOpenVGRenderLoop::QSGOpenVGRenderLoop
QSGOpenVGRenderLoop()
Definition
qsgopenvgrenderloop.cpp:20
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtdeclarative
src
plugins
scenegraph
openvg
qsgopenvgadaptation.cpp
Generated on Thu Nov 14 2024 00:47:47 for Qt by
1.12.0