Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
5
6#include "qoffscreensurface.h"
7#include "qscreen.h"
8
10
12{
13public:
14};
15
21
25
27{
28 return static_cast<QOffscreenSurface*>(m_surface);
29}
30
38
46
51{
52 return false;
53}
54
\inmodule QtGui
QScreen * screen() const
Returns the screen to which the offscreen surface is connected.
virtual bool isValid() const
Returns true if the platform offscreen surface has been allocated.
virtual QSurfaceFormat format() const override
Returns the actual surface format of the offscreen surface.
QOffscreenSurface * offscreenSurface() const
QPlatformScreen * screen() const override
Returns the platform screen handle corresponding to this QPlatformOffscreenSurface.
The QPlatformScreen class provides an abstraction for visual displays.
The QPlatformSurface class provides an abstraction for a surface.
friend class QPlatformOffscreenSurface
QPlatformScreen * handle() const
Get the platform screen handle.
Definition qscreen.cpp:83
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
Combined button and popup list for selecting options.