Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtWaylandClient::ShmServerBuffer Class Reference

#include <shmserverbufferintegration.h>

+ Inheritance diagram for QtWaylandClient::ShmServerBuffer:
+ Collaboration diagram for QtWaylandClient::ShmServerBuffer:

Public Member Functions

 ShmServerBuffer (const QString &key, const QSize &size, int bytesPerLine, QWaylandServerBuffer::Format format)
 
 ~ShmServerBuffer () override
 
QOpenGLTexturetoOpenGlTexture () override
 
- Public Member Functions inherited from QtWaylandClient::QWaylandServerBuffer
 QWaylandServerBuffer ()
 
virtual ~QWaylandServerBuffer ()
 
Format format () const
 
QSize size () const
 
void setUserData (void *userData)
 
voiduserData () const
 

Additional Inherited Members

- Public Types inherited from QtWaylandClient::QWaylandServerBuffer
enum  Format { RGBA32 , A8 , Custom }
 
- Protected Attributes inherited from QtWaylandClient::QWaylandServerBuffer
Format m_format = RGBA32
 
QSize m_size
 

Detailed Description

Definition at line 21 of file shmserverbufferintegration.h.

Constructor & Destructor Documentation

◆ ShmServerBuffer()

ShmServerBuffer::ShmServerBuffer ( const QString & key,
const QSize & size,
int bytesPerLine,
QWaylandServerBuffer::Format format )

Definition at line 56 of file shmserverbufferintegration.cpp.

References QtWaylandClient::QWaylandServerBuffer::format(), QtWaylandClient::QWaylandServerBuffer::m_format, QtWaylandClient::QWaylandServerBuffer::m_size, and QtWaylandClient::QWaylandServerBuffer::size().

+ Here is the call graph for this function:

◆ ~ShmServerBuffer()

ShmServerBuffer::~ShmServerBuffer ( )
override

Definition at line 64 of file shmserverbufferintegration.cpp.

Member Function Documentation

◆ toOpenGlTexture()

QOpenGLTexture * ShmServerBuffer::toOpenGlTexture ( )
overridevirtual

Implements QtWaylandClient::QWaylandServerBuffer.

Definition at line 68 of file shmserverbufferintegration.cpp.

References createTextureFromShm(), QSize::height(), QtWaylandClient::QWaylandServerBuffer::m_format, QtWaylandClient::QWaylandServerBuffer::m_size, and QSize::width().

+ Here is the call graph for this function:

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