![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qohossurface.h>
Public Member Functions | |
| QOhosSurface (::OHNativeWindow *nativeWindow) | |
| ::OHNativeWindow * | nativeWindow () const |
| void | setNativeWindowSurface (::OHNativeWindow *nativeWindow, const std::optional< QSize > &optSurfaceSize) |
| EGLSurface | tryGetOrCreateEGLWindowSurface (EGLDisplay displaydisplay, EGLConfig configconfig, bool swappingBuffers) |
| std::optional< QSize > | surfaceResolution () const |
| void | paintOnNativeWindowSurface (std::function< std::vector<::Region::Rect >(QImage &, ::BufferHandle *)> paintFunc, std::function< void(::BufferHandle *)> onFlushSuccessFunc) |
| void | clearNativeWindowSurface () |
| void | setExtraUsageBitsForNativeWindowBuffer (std::uint64_t usageSetBits) |
Static Public Member Functions | |
| static QImage::Format | mapNativeBufferFormatToQImageFormatOrFail (std::int32_t formatformat) |
| static std::optional< QSize > | tryGetBufferGeometryForWindow (::OHNativeWindow *nativeWindow) |
Static Public Attributes | |
| static constexpr ::OH_NativeBuffer_Format | bufferFormat = ::NATIVEBUFFER_PIXEL_FMT_BGRA_8888 |
Definition at line 27 of file qohossurface.h.
|
explicit |
Definition at line 156 of file qohossurface.cpp.
References QOhosSurface().
Referenced by QOhosSurface().
| void QOhosSurface::clearNativeWindowSurface | ( | ) |
Definition at line 282 of file qohossurface.cpp.
Referenced by QOhosView::showImmediate().
|
static |
Definition at line 116 of file qohossurface.cpp.
| OHNativeWindow * QOhosSurface::nativeWindow | ( | ) | const |
Definition at line 167 of file qohossurface.cpp.
| void QOhosSurface::paintOnNativeWindowSurface | ( | std::function< std::vector<::Region::Rect >(QImage &, ::BufferHandle *)> | paintFunc, |
| std::function< void(::BufferHandle *)> | onFlushSuccessFunc ) |
Definition at line 211 of file qohossurface.cpp.
| void QOhosSurface::setExtraUsageBitsForNativeWindowBuffer | ( | std::uint64_t | usageSetBits | ) |
Definition at line 292 of file qohossurface.cpp.
| void QOhosSurface::setNativeWindowSurface | ( | ::OHNativeWindow * | nativeWindow, |
| const std::optional< QSize > & | optSurfaceSize ) |
Definition at line 172 of file qohossurface.cpp.
| std::optional< QSize > QOhosSurface::surfaceResolution | ( | ) | const |
Definition at line 206 of file qohossurface.cpp.
|
static |
Definition at line 141 of file qohossurface.cpp.
| EGLSurface QOhosSurface::tryGetOrCreateEGLWindowSurface | ( | EGLDisplay | display, |
| EGLConfig | config, | ||
| bool | swappingBuffers ) |
Definition at line 196 of file qohossurface.cpp.
|
static |
Definition at line 30 of file qohossurface.h.