10#include <qpa/qplatformpixmap.h>
13typedef unsigned long XID;
31 void fromImage(
const QImage &img, Qt::ImageConversionFlags flags)
override;
32 void copy(
const QPlatformPixmap *data,
const QRect &rect)
override;
33 bool scroll(
int dx,
int dy,
const QRect &rect)
override;
34 int metric(QPaintDevice::PaintDeviceMetric metric)
const override;
35 void fill(
const QColor &fillColor)
override;
37 void setMask(
const QBitmap &mask)
override;
39 QPixmap
transformed(
const QTransform &matrix, Qt::TransformationMode mode)
const override;
46 inline Drawable
handle()
const {
return hd; }
66 QBitmap mask_to_bitmap(
int screen)
const;
67 static Pixmap bitmap_to_mask(
const QBitmap &,
int screen);
68 void bitmapFromImage(
const QImage &image);
78 InvertedWhenBoundToTexture = 0x4,
79 GlSurfaceCreatedWithAlpha = 0x8,
97 return (pixmap.handle() && pixmap.handle()->classId() == QPlatformPixmap::X11Class)
98 ?
static_cast<QX11PlatformPixmap *>(pixmap.handle())
void beginPaint(const QRegion ®ion) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QXcbNativeBackingStore(QWindow *window)
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
~QXcbNativeBackingStore()
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
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.
friend void qt_x11SetScreen(QPixmap &pixmap, int screen)
Pixmap qt_x11PixmapHandle(const QPixmap &pixmap)
Picture qt_x11PictureHandle(const QPixmap &pixmap)
QX11PlatformPixmap * qt_x11Pixmap(const QPixmap &pixmap)
int qt_x11SetDefaultScreen(int screen)