Qt
6.x
The Qt SDK
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
4
#include "
qplatformoffscreensurface.h
"
5
6
#include "
qoffscreensurface.h
"
7
#include "
qscreen.h
"
8
9
QT_BEGIN_NAMESPACE
10
11
class
QPlatformOffscreenSurfacePrivate
12
{
13
public
:
14
};
15
16
QPlatformOffscreenSurface::QPlatformOffscreenSurface
(
QOffscreenSurface
*offscreenSurface)
17
:
QPlatformSurface
(offscreenSurface)
18
, d_ptr(new
QPlatformOffscreenSurfacePrivate
)
19
{
20
}
21
22
QPlatformOffscreenSurface::~QPlatformOffscreenSurface
()
23
{
24
}
25
26
QOffscreenSurface
*
QPlatformOffscreenSurface::offscreenSurface
()
const
27
{
28
return
static_cast<
QOffscreenSurface
*
>
(m_surface);
29
}
30
34
QPlatformScreen
*
QPlatformOffscreenSurface::screen
()
const
35
{
36
return
offscreenSurface
()->
screen
()->
handle
();
37
}
38
42
QSurfaceFormat
QPlatformOffscreenSurface::format
()
const
43
{
44
return
QSurfaceFormat
();
45
}
46
50
bool
QPlatformOffscreenSurface::isValid
()
const
51
{
52
return
false
;
53
}
54
55
QT_END_NAMESPACE
QOffscreenSurface
\inmodule QtGui
Definition
qoffscreensurface.h:21
QOffscreenSurface::screen
QScreen * screen() const
Returns the screen to which the offscreen surface is connected.
Definition
qoffscreensurface.cpp:246
QPlatformOffscreenSurfacePrivate
Definition
qplatformoffscreensurface.cpp:12
QPlatformOffscreenSurface::isValid
virtual bool isValid() const
Returns true if the platform offscreen surface has been allocated.
Definition
qplatformoffscreensurface.cpp:50
QPlatformOffscreenSurface::format
virtual QSurfaceFormat format() const override
Returns the actual surface format of the offscreen surface.
Definition
qplatformoffscreensurface.cpp:42
QPlatformOffscreenSurface::offscreenSurface
QOffscreenSurface * offscreenSurface() const
Definition
qplatformoffscreensurface.cpp:26
QPlatformOffscreenSurface::screen
QPlatformScreen * screen() const override
Returns the platform screen handle corresponding to this QPlatformOffscreenSurface.
Definition
qplatformoffscreensurface.cpp:34
QPlatformOffscreenSurface::~QPlatformOffscreenSurface
~QPlatformOffscreenSurface() override
Definition
qplatformoffscreensurface.cpp:22
QPlatformScreen
The QPlatformScreen class provides an abstraction for visual displays.
Definition
qplatformscreen.h:44
QPlatformSurface
The QPlatformSurface class provides an abstraction for a surface.
Definition
qplatformsurface.h:30
QPlatformSurface::QPlatformOffscreenSurface
friend class QPlatformOffscreenSurface
Definition
qplatformsurface.h:48
QScreen::handle
QPlatformScreen * handle() const
Get the platform screen handle.
Definition
qscreen.cpp:83
QSurfaceFormat
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
Definition
qsurfaceformat.h:17
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qoffscreensurface.h
qplatformoffscreensurface.h
qscreen.h
qtbase
src
gui
kernel
qplatformoffscreensurface.cpp
Generated by
1.9.7