Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtWaylandClient::QWaylandShmBuffer Class Reference

#include <qwaylandshmbackingstore_p.h>

+ Inheritance diagram for QtWaylandClient::QWaylandShmBuffer:
+ Collaboration diagram for QtWaylandClient::QWaylandShmBuffer:

Public Member Functions

 QWaylandShmBuffer (QWaylandDisplay *display, const QSize &size, QImage::Format format, qreal scale=1)
 
 ~QWaylandShmBuffer () override
 
QSize size () const override
 
int scale () const override
 
QImageimage ()
 
QImageimageInsideMargins (const QMargins &margins)
 
- Public Member Functions inherited from QtWaylandClient::QWaylandBuffer
 QWaylandBuffer ()
 
virtual ~QWaylandBuffer ()
 
void init (wl_buffer *buf)
 
wl_buffer * buffer ()
 
virtual QSize size () const =0
 
virtual int scale () const
 
void setBusy ()
 
bool busy () const
 
void setCommitted ()
 
bool committed () const
 

Additional Inherited Members

- Protected Attributes inherited from QtWaylandClient::QWaylandBuffer
struct wl_buffer * mBuffer = nullptr
 

Detailed Description

Definition at line 35 of file qwaylandshmbackingstore_p.h.

Constructor & Destructor Documentation

◆ QWaylandShmBuffer()

QtWaylandClient::QWaylandShmBuffer::QWaylandShmBuffer ( QWaylandDisplay display,
const QSize size,
QImage::Format  format,
qreal  scale = 1 
)

◆ ~QWaylandShmBuffer()

QtWaylandClient::QWaylandShmBuffer::~QWaylandShmBuffer ( void  )
override

Definition at line 98 of file qwaylandshmbackingstore.cpp.

References QImage::constBits(), and QImage::sizeInBytes().

+ Here is the call graph for this function:

Member Function Documentation

◆ image()

QImage * QtWaylandClient::QWaylandShmBuffer::image ( )
inline

Definition at line 42 of file qwaylandshmbackingstore_p.h.

Referenced by QtWaylandClient::QWaylandShmBackingStore::beginPaint(), QtWaylandClient::QWaylandShmBackingStore::contentSurface(), QtWaylandClient::QWaylandShmBackingStore::entireSurface(), and QtWaylandClient::QWaylandShmBackingStore::resize().

+ Here is the caller graph for this function:

◆ imageInsideMargins()

QImage * QtWaylandClient::QWaylandShmBuffer::imageInsideMargins ( const QMargins margins)

Definition at line 107 of file qwaylandshmbackingstore.cpp.

References QMargins::bottom(), QImage::bytesPerLine(), QImage::constBits(), QImage::devicePixelRatio(), QImage::format(), QSize::height(), QMargins::isNull(), QMargins::left(), QMargins::right(), QImage::setDevicePixelRatio(), QImage::size(), QMargins::top(), and QSize::width().

Referenced by QtWaylandClient::QWaylandShmBackingStore::contentSurface().

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

◆ scale()

int QtWaylandClient::QWaylandShmBuffer::scale ( ) const
inlineoverridevirtual

Reimplemented from QtWaylandClient::QWaylandBuffer.

Definition at line 41 of file qwaylandshmbackingstore_p.h.

◆ size()

QSize QtWaylandClient::QWaylandShmBuffer::size ( ) const
inlineoverridevirtual

Implements QtWaylandClient::QWaylandBuffer.

Definition at line 40 of file qwaylandshmbackingstore_p.h.


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