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
qplatformoffscreensurface.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 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
// Qt-Security score:significant reason:default
4
5
#
include
"qplatformoffscreensurface.h"
6
7
#
include
"qoffscreensurface.h"
8
#
include
"qscreen.h"
9
10
QT_BEGIN_NAMESPACE
11
12
class
QPlatformOffscreenSurfacePrivate
13
{
14
public
:
15
};
16
17
QPlatformOffscreenSurface::QPlatformOffscreenSurface(QOffscreenSurface *offscreenSurface)
18
: QPlatformSurface(offscreenSurface)
19
, d_ptr(
new
QPlatformOffscreenSurfacePrivate)
20
{
21
}
22
23
QPlatformOffscreenSurface::~QPlatformOffscreenSurface()
24
{
25
}
26
27
QOffscreenSurface *QPlatformOffscreenSurface::offscreenSurface()
const
28
{
29
return
static_cast
<QOffscreenSurface*>(m_surface);
30
}
31
32
/*!
33
Returns the platform screen handle corresponding to this QPlatformOffscreenSurface.
34
*/
35
QPlatformScreen *QPlatformOffscreenSurface::screen()
const
36
{
37
return
offscreenSurface()->screen()->handle();
38
}
39
40
/*!
41
Returns the actual surface format of the offscreen surface.
42
*/
43
QSurfaceFormat QPlatformOffscreenSurface::format()
const
44
{
45
return
QSurfaceFormat();
46
}
47
48
/*!
49
Returns \c true if the platform offscreen surface has been allocated.
50
*/
51
bool
QPlatformOffscreenSurface::isValid()
const
52
{
53
return
false
;
54
}
55
56
QT_END_NAMESPACE
QPlatformOffscreenSurfacePrivate
Definition
qplatformoffscreensurface.cpp:13
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
gui
kernel
qplatformoffscreensurface.cpp
Generated on
for Qt by
1.16.1