![]() |
Qt 6.x
The Qt SDK
|
#include <qplatformoffscreensurface.h>
Public Member Functions | |
QPlatformOffscreenSurface (QOffscreenSurface *offscreenSurface) | |
~QPlatformOffscreenSurface () override | |
QOffscreenSurface * | offscreenSurface () const |
QPlatformScreen * | screen () const override |
Returns the platform screen handle corresponding to this QPlatformOffscreenSurface. | |
virtual QSurfaceFormat | format () const override |
Returns the actual surface format of the offscreen surface. | |
virtual bool | isValid () const |
Returns true if the platform offscreen surface has been allocated. | |
![]() | |
virtual | ~QPlatformSurface () |
virtual QSurfaceFormat | format () const =0 |
QSurface * | surface () const |
virtual QPlatformScreen * | screen () const =0 |
Protected Attributes | |
QScopedPointer< QPlatformOffscreenSurfacePrivate > | d_ptr |
Friends | |
class | QOffscreenSurfacePrivate |
Additional Inherited Members | |
![]() | |
static bool | isRasterSurface (QSurface *surface) |
Definition at line 29 of file qplatformoffscreensurface.h.
|
explicit |
Definition at line 16 of file qplatformoffscreensurface.cpp.
|
override |
Definition at line 22 of file qplatformoffscreensurface.cpp.
|
overridevirtual |
Returns the actual surface format of the offscreen surface.
Implements QPlatformSurface.
Reimplemented in QEGLPbuffer, QAndroidPlatformOffscreenSurface, QCocoaOffscreenSurface, QEglFSOffscreenWindow, QIOSOffscreenSurface, and QGLXPbuffer.
Definition at line 42 of file qplatformoffscreensurface.cpp.
|
virtual |
Returns true
if the platform offscreen surface has been allocated.
Reimplemented in QEGLPbuffer, QAndroidPlatformOffscreenSurface, QCocoaOffscreenSurface, QEglFSOffscreenWindow, QIOSOffscreenSurface, and QGLXPbuffer.
Definition at line 50 of file qplatformoffscreensurface.cpp.
QOffscreenSurface * QPlatformOffscreenSurface::offscreenSurface | ( | ) | const |
Definition at line 26 of file qplatformoffscreensurface.cpp.
Referenced by QEGLPbuffer::QEGLPbuffer(), QGLXPbuffer::QGLXPbuffer(), QWasmOffscreenSurface::QWasmOffscreenSurface(), QCocoaOffscreenSurface::format(), QIOSOffscreenSurface::format(), and screen().
|
overridevirtual |
Returns the platform screen handle corresponding to this QPlatformOffscreenSurface.
Implements QPlatformSurface.
Definition at line 34 of file qplatformoffscreensurface.cpp.
References QScreen::handle(), offscreenSurface(), and QOffscreenSurface::screen().
|
friend |
Definition at line 45 of file qplatformoffscreensurface.h.
|
protected |
Definition at line 44 of file qplatformoffscreensurface.h.