4#ifndef QXCBBACKINGSTORE_H
5#define QXCBBACKINGSTORE_H
7#include <qpa/qplatformbackingstore.h>
8#include <QtCore/QStack>
27 qreal sourceDevicePixelRatio,
31 bool translucentBackground)
override;
43 void *shmInfo =
nullptr);
67 void initXRenderMode();
69 xcb_pixmap_t m_xrenderPixmap = XCB_NONE;
70 xcb_render_picture_t m_xrenderPicture = XCB_NONE;
71 xcb_render_pictformat_t m_xrenderPictFormat = XCB_NONE;
72 xcb_render_picture_t m_windowPicture = XCB_NONE;
74 bool m_usingXRenderMode =
false;
75 bool m_useGrabbedBackgound =
false;
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
QXcbBackingStoreImage * m_image
QPlatformGraphicsBuffer * graphicsBuffer() const override
Accessor for a backingstores graphics buffer abstraction.
void resize(const QSize &size, const QRegion &staticContents) override
FlushResult rhiFlush(QWindow *window, qreal sourceDevicePixelRatio, const QRegion ®ion, const QPoint &offset, QPlatformTextureList *textures, bool translucentBackground) override
Flushes the given region from the specified window, and compositing it with the specified textures li...
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void endPaint() override
This function is called after painting onto the surface has ended.
virtual void render(xcb_window_t window, const QRegion ®ion, const QPoint &offset)
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
virtual void recreateImage(QXcbWindow *win, const QSize &size)
QStack< QRegion > m_paintRegions
static bool createSystemVShmSegment(xcb_connection_t *c, size_t segmentSize=1, void *shmInfo=nullptr)
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
bool scroll(const QRegion &area, int dx, int dy) override
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
~QXcbSystemTrayBackingStore()
void render(xcb_window_t window, const QRegion ®ion, const QPoint &offset) override
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
void recreateImage(QXcbWindow *win, const QSize &size) override
Combined button and popup list for selecting options.
static int area(const QSize &s)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint const GLuint GLuint const GLuint * textures
GLenum GLuint GLintptr offset