blob: f867d3df1b4f19b2b1a10e506cea1c3d537f6b51 (
plain)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | // Copyright (C) 2017 The Qt Company Ltd.// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only#ifndef QPLATFORMSURFACE_H#define QPLATFORMSURFACE_H//// W A R N I N G// -------------//// This file is part of the QPA API and is not meant to be used// in applications. Usage of this API may make your code// source and binary incompatible with future versions of Qt.//#include <QtGui/qtguiglobal.h>#include <QtCore/qnamespace.h>#include <QtGui/qsurface.h>#include <QtGui/qsurfaceformat.h> QT_BEGIN_NAMESPACE class QPlatformScreen;#ifndef QT_NO_DEBUG_STREAMclass QDebug;#endifclass Q_GUI_EXPORT QPlatformSurface {public:Q_DISABLE_COPY_MOVE(QPlatformSurface)virtual~QPlatformSurface();virtual QSurfaceFormat format()const=0; QSurface *surface()const;virtual QPlatformScreen *screen()const=0;static boolisRasterSurface(QSurface *surface);private:explicitQPlatformSurface(QSurface *surface); QSurface *m_surface;friend class QPlatformWindow;friend class QPlatformOffscreenSurface;};#ifndef QT_NO_DEBUG_STREAM Q_GUI_EXPORT QDebug operator<<(QDebug debug,const QPlatformSurface *surface);#endif QT_END_NAMESPACE #endif//QPLATFORMSURFACE_H
|