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::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)
 
QRegiondirtyRegion ()
 
- Public Member Functions inherited from QtWaylandClient::QWaylandBuffer
 QWaylandBuffer ()
 
virtual ~QWaylandBuffer ()
 
void init (wl_buffer *buf)
 
wl_buffer * buffer ()
 
void setBusy (bool busy)
 
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 100 of file qwaylandshmbackingstore.cpp.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ dirtyRegion()

QRegion & QtWaylandClient::QWaylandShmBuffer::dirtyRegion ( )
inline

Definition at line 46 of file qwaylandshmbackingstore_p.h.

◆ 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::recreateBackBufferIfNeeded().

+ Here is the caller graph for this function:

◆ imageInsideMargins()

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

Definition at line 109 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: