23 Q_DECLARE_PRIVATE(QOffscreenSurface)
26 explicit QOffscreenSurface(QScreen *screen =
nullptr, QObject *parent =
nullptr);
29 SurfaceType surfaceType()
const override;
36 void setFormat(
const QSurfaceFormat &format);
37 QSurfaceFormat format()
const override;
38 QSurfaceFormat requestedFormat()
const;
40 QSize size()
const override;
42 QScreen *screen()
const;
43 void setScreen(QScreen *screen);
45 QPlatformOffscreenSurface *handle()
const;
47 QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QOffscreenSurface)
50 void screenChanged(QScreen *screen);
53 void screenDestroyed(QObject *screen);
57 QPlatformSurface *surfaceHandle()
const override;
59 Q_DISABLE_COPY(QOffscreenSurface)