Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOhosSurface Class Referencefinal

#include <qohossurface.h>

Collaboration diagram for QOhosSurface:

Public Member Functions

 QOhosSurface (::OHNativeWindow *nativeWindow)
::OHNativeWindow * nativeWindow () const
void setNativeWindowSurface (::OHNativeWindow *nativeWindow)
EGLSurface tryGetOrCreateEGLWindowSurface (EGLDisplay display, EGLConfig config)
QOhosOptional< QSizesurfaceResolution () 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 format)
static QOhosOptional< QSizetryGetBufferGeometryForWindow (::OHNativeWindow *nativeWindow)

Static Public Attributes

static constexpr ::OH_NativeBuffer_Format bufferFormat = ::NATIVEBUFFER_PIXEL_FMT_BGRA_8888

Detailed Description

Definition at line 26 of file qohossurface.h.

Constructor & Destructor Documentation

◆ QOhosSurface()

QOhosSurface::QOhosSurface ( ::OHNativeWindow * nativeWindow)
explicit

Definition at line 156 of file qohossurface.cpp.

References QOhosSurface().

Referenced by QOhosSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ clearNativeWindowSurface()

void QOhosSurface::clearNativeWindowSurface ( )

Definition at line 279 of file qohossurface.cpp.

Referenced by QOhosView::showImmediate().

Here is the caller graph for this function:

◆ mapNativeBufferFormatToQImageFormatOrFail()

QImage::Format QOhosSurface::mapNativeBufferFormatToQImageFormatOrFail ( std::int32_t format)
static

Definition at line 116 of file qohossurface.cpp.

◆ nativeWindow()

OHNativeWindow * QOhosSurface::nativeWindow ( ) const

Definition at line 167 of file qohossurface.cpp.

◆ paintOnNativeWindowSurface()

void QOhosSurface::paintOnNativeWindowSurface ( std::function< std::vector<::Region::Rect >(QImage &, ::BufferHandle *)> paintFunc,
std::function< void(::BufferHandle *)> onFlushSuccessFunc )

Definition at line 208 of file qohossurface.cpp.

◆ setExtraUsageBitsForNativeWindowBuffer()

void QOhosSurface::setExtraUsageBitsForNativeWindowBuffer ( std::uint64_t usageSetBits)

Definition at line 289 of file qohossurface.cpp.

◆ setNativeWindowSurface()

void QOhosSurface::setNativeWindowSurface ( ::OHNativeWindow * nativeWindow)

Definition at line 172 of file qohossurface.cpp.

◆ surfaceResolution()

QOhosOptional< QSize > QOhosSurface::surfaceResolution ( ) const

Definition at line 203 of file qohossurface.cpp.

◆ tryGetBufferGeometryForWindow()

QOhosOptional< QSize > QOhosSurface::tryGetBufferGeometryForWindow ( ::OHNativeWindow * nativeWindow)
static

Definition at line 141 of file qohossurface.cpp.

◆ tryGetOrCreateEGLWindowSurface()

EGLSurface QOhosSurface::tryGetOrCreateEGLWindowSurface ( EGLDisplay display,
EGLConfig config )

Definition at line 193 of file qohossurface.cpp.

Member Data Documentation

◆ bufferFormat

::OH_NativeBuffer_Format QOhosSurface::bufferFormat = ::NATIVEBUFFER_PIXEL_FMT_BGRA_8888
static

Definition at line 29 of file qohossurface.h.


The documentation for this class was generated from the following files: