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
QXcbBackingStoreImage Class Reference
+ Inheritance diagram for QXcbBackingStoreImage:
+ Collaboration diagram for QXcbBackingStoreImage:

Public Member Functions

 QXcbBackingStoreImage (QXcbBackingStore *backingStore, const QSize &size)
 
 QXcbBackingStoreImage (QXcbBackingStore *backingStore, const QSize &size, uint depth, QImage::Format format)
 
 ~QXcbBackingStoreImage ()
 
void resize (const QSize &size)
 
void flushScrolledRegion (bool clientSideScroll)
 
bool scroll (const QRegion &area, int dx, int dy)
 
QImageimage ()
 
QPlatformGraphicsBuffergraphicsBuffer ()
 
QSize size () const
 
bool hasAlpha () const
 
bool hasShm () const
 
void put (xcb_drawable_t dst, const QRegion &region, const QPoint &offset)
 
void preparePaint (const QRegion &region)
 
- Public Member Functions inherited from QXcbObject
 QXcbObject (QXcbConnection *connection=nullptr)
 
void setConnection (QXcbConnection *connection)
 
QXcbConnectionconnection () const
 
xcb_atom_t atom (QXcbAtom::Atom atom) const
 
xcb_connection_t * xcb_connection () const
 

Static Public Member Functions

static bool createSystemVShmSegment (xcb_connection_t *c, size_t segmentSize=1, xcb_shm_segment_info_t *shm_info=nullptr)
 

Detailed Description

Definition at line 41 of file qxcbbackingstore.cpp.

Constructor & Destructor Documentation

◆ QXcbBackingStoreImage() [1/2]

QXcbBackingStoreImage::QXcbBackingStoreImage ( QXcbBackingStore * backingStore,
const QSize & size )

Definition at line 152 of file qxcbbackingstore.cpp.

References window(), and QPlatformBackingStore::window().

+ Here is the call graph for this function:

◆ QXcbBackingStoreImage() [2/2]

QXcbBackingStoreImage::QXcbBackingStoreImage ( QXcbBackingStore * backingStore,
const QSize & size,
uint depth,
QImage::Format format )

Definition at line 160 of file qxcbbackingstore.cpp.

◆ ~QXcbBackingStoreImage()

QXcbBackingStoreImage::~QXcbBackingStoreImage ( )
inline

Definition at line 46 of file qxcbbackingstore.cpp.

Member Function Documentation

◆ createSystemVShmSegment()

bool QXcbBackingStoreImage::createSystemVShmSegment ( xcb_connection_t * c,
size_t segmentSize = 1,
xcb_shm_segment_info_t * shm_info = nullptr )
static

Definition at line 370 of file qxcbbackingstore.cpp.

References error, and qCWarning.

Referenced by QXcbBackingStore::createSystemVShmSegment().

+ Here is the caller graph for this function:

◆ flushScrolledRegion()

void QXcbBackingStoreImage::flushScrolledRegion ( bool clientSideScroll)

Definition at line 271 of file qxcbbackingstore.cpp.

References QPainter::CompositionMode_Source, QXcbObject::connection(), QImage::format(), hasShm(), QRegion::intersects(), QRegion::isNull(), Q_XCB_REPLY_UNCHECKED, rect, reply, QXcbConnection::sync(), and QXcbObject::xcb_connection().

Referenced by QXcbBackingStore::flush(), QXcbBackingStore::rhiFlush(), and QXcbBackingStore::toImage().

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

◆ graphicsBuffer()

QPlatformGraphicsBuffer * QXcbBackingStoreImage::graphicsBuffer ( )
inline

Definition at line 55 of file qxcbbackingstore.cpp.

Referenced by QXcbBackingStore::graphicsBuffer().

+ Here is the caller graph for this function:

◆ hasAlpha()

bool QXcbBackingStoreImage::hasAlpha ( ) const
inline

Definition at line 59 of file qxcbbackingstore.cpp.

Referenced by QXcbBackingStore::beginPaint().

+ Here is the caller graph for this function:

◆ hasShm()

bool QXcbBackingStoreImage::hasShm ( ) const
inline

Definition at line 60 of file qxcbbackingstore.cpp.

Referenced by flushScrolledRegion(), preparePaint(), put(), resize(), and scroll().

+ Here is the caller graph for this function:

◆ image()

QImage * QXcbBackingStoreImage::image ( )
inline

Definition at line 54 of file qxcbbackingstore.cpp.

Referenced by QXcbBackingStore::endPaint(), QXcbBackingStore::paintDevice(), and QXcbBackingStore::toImage().

+ Here is the caller graph for this function:

◆ preparePaint()

void QXcbBackingStoreImage::preparePaint ( const QRegion & region)

Definition at line 725 of file qxcbbackingstore.cpp.

References QXcbObject::connection(), hasShm(), QRegion::intersects(), and QXcbConnection::sync().

Referenced by QXcbBackingStore::beginPaint(), QXcbBackingStore::endPaint(), and scroll().

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

◆ put()

void QXcbBackingStoreImage::put ( xcb_drawable_t dst,
const QRegion & region,
const QPoint & offset )

Definition at line 675 of file qxcbbackingstore.cpp.

References QRegion::boundingRect(), hasShm(), Q_ASSERT, rect, QRect::topLeft(), QRegion::translated(), QRect::translated(), and QXcbObject::xcb_connection().

Referenced by QXcbBackingStore::render(), and QXcbSystemTrayBackingStore::render().

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

◆ resize()

void QXcbBackingStoreImage::resize ( const QSize & size)

Definition at line 183 of file qxcbbackingstore.cpp.

References QSysInfo::BigEndian, QSysInfo::ByteOrder, QXcbObject::connection(), QScreen::handle(), hasShm(), imageDataSize(), qCDebug, size(), QPlatformBackingStore::window(), and QXcbObject::xcb_connection().

Referenced by QXcbBackingStore::recreateImage(), and QXcbSystemTrayBackingStore::recreateImage().

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

◆ scroll()

bool QXcbBackingStoreImage::scroll ( const QRegion & area,
int dx,
int dy )

Definition at line 441 of file qxcbbackingstore.cpp.

References area(), hasShm(), QRegion::intersected(), QImage::isNull(), preparePaint(), qt_scrollRectInImage(), rect, scrollArea, size(), QRegion::translated(), QRect::translated(), and QXcbObject::xcb_connection().

Referenced by QXcbBackingStore::scroll().

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

◆ size()

QSize QXcbBackingStoreImage::size ( ) const
inline

Definition at line 57 of file qxcbbackingstore.cpp.

References QImage::size().

Referenced by QXcbBackingStore::flush(), resize(), QXcbBackingStore::resize(), QXcbBackingStore::rhiFlush(), and scroll().

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

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