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
6
8#include "qscreen.h"
9
11
13{
14public:
15};
16
17QPlatformOffscreenSurface::QPlatformOffscreenSurface(QOffscreenSurface *offscreenSurface)
18 : QPlatformSurface(offscreenSurface)
19 , d_ptr(new QPlatformOffscreenSurfacePrivate)
20{
21}
22
23QPlatformOffscreenSurface::~QPlatformOffscreenSurface()
24{
25}
26
27QOffscreenSurface *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*/
35QPlatformScreen *QPlatformOffscreenSurface::screen() const
36{
37 return offscreenSurface()->screen()->handle();
38}
39
40/*!
41 Returns the actual surface format of the offscreen surface.
42*/
43QSurfaceFormat QPlatformOffscreenSurface::format() const
44{
45 return QSurfaceFormat();
46}
47
48/*!
49 Returns \c true if the platform offscreen surface has been allocated.
50*/
51bool QPlatformOffscreenSurface::isValid() const
52{
53 return false;
54}
55
56QT_END_NAMESPACE
Combined button and popup list for selecting options.