24 Q_DECLARE_PRIVATE(QOffscreenSurface)
27 explicit QOffscreenSurface(QScreen *screen =
nullptr, QObject *parent =
nullptr);
30 SurfaceType surfaceType()
const override;
37 void setFormat(
const QSurfaceFormat &format);
38 QSurfaceFormat format()
const override;
39 QSurfaceFormat requestedFormat()
const;
41 QSize size()
const override;
43 QScreen *screen()
const;
44 void setScreen(QScreen *screen);
46 QPlatformOffscreenSurface *handle()
const;
48 QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QOffscreenSurface)
51 void screenChanged(QScreen *screen);
54 void screenDestroyed(QObject *screen);
58 QPlatformSurface *surfaceHandle()
const override;
60 Q_DISABLE_COPY(QOffscreenSurface)