![]() |
Qt 6.x
The Qt SDK
|
#include <qpixmap_x11_p.h>
Inheritance diagram for QX11PlatformPixmap:
Collaboration diagram for QX11PlatformPixmap:Public Member Functions | |
| QX11PlatformPixmap (PixelType pixelType) | |
| ~QX11PlatformPixmap () | |
| QPlatformPixmap * | createCompatiblePlatformPixmap () const override |
| void | resize (int width, int height) override |
| void | fromImage (const QImage &img, Qt::ImageConversionFlags flags) override |
| void | copy (const QPlatformPixmap *data, const QRect &rect) override |
| bool | scroll (int dx, int dy, const QRect &rect) override |
| int | metric (QPaintDevice::PaintDeviceMetric metric) const override |
| void | fill (const QColor &fillColor) override |
| QBitmap | mask () const override |
| void | setMask (const QBitmap &mask) override |
| bool | hasAlphaChannel () const override |
| QPixmap | transformed (const QTransform &matrix, Qt::TransformationMode mode) const override |
| QImage | toImage () const override |
| QImage | toImage (const QRect &rect) const override |
| QPaintEngine * | paintEngine () const override |
| qreal | devicePixelRatio () const override |
| void | setDevicePixelRatio (qreal scaleFactor) override |
| Drawable | handle () const |
| Picture | x11PictureHandle () const |
| const QXcbX11Info * | x11_info () const |
| Pixmap | x11ConvertToDefaultDepth () |
| bool | isBackingStore () const |
| void | setIsBackingStore (bool on) |
Public Member Functions inherited from QPlatformPixmap | |
| QPlatformPixmap (PixelType pixelType, int classId) | |
| virtual | ~QPlatformPixmap () |
| virtual QPlatformPixmap * | createCompatiblePlatformPixmap () const |
| virtual void | resize (int width, int height)=0 |
| virtual void | fromImage (const QImage &image, Qt::ImageConversionFlags flags)=0 |
| virtual void | fromImageInPlace (QImage &image, Qt::ImageConversionFlags flags) |
| virtual void | fromImageReader (QImageReader *imageReader, Qt::ImageConversionFlags flags) |
| virtual bool | fromFile (const QString &filename, const char *format, Qt::ImageConversionFlags flags) |
| virtual bool | fromData (const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags) |
| virtual void | copy (const QPlatformPixmap *data, const QRect &rect) |
| virtual bool | scroll (int dx, int dy, const QRect &rect) |
| virtual int | metric (QPaintDevice::PaintDeviceMetric metric) const =0 |
| virtual void | fill (const QColor &color)=0 |
| virtual QBitmap | mask () const |
| virtual void | setMask (const QBitmap &mask) |
| virtual bool | hasAlphaChannel () const =0 |
| virtual QPixmap | transformed (const QTransform &matrix, Qt::TransformationMode mode) const |
| virtual QImage | toImage () const =0 |
| virtual QImage | toImage (const QRect &rect) const |
| virtual QPaintEngine * | paintEngine () const =0 |
| int | serialNumber () const |
| PixelType | pixelType () const |
| ClassId | classId () const |
| virtual qreal | devicePixelRatio () const =0 |
| virtual void | setDevicePixelRatio (qreal scaleFactor)=0 |
| virtual QImage * | buffer () |
| int | width () const |
| int | height () const |
| int | colorCount () const |
| int | depth () const |
| bool | isNull () const |
| qint64 | cacheKey () const |
Static Public Member Functions | |
| static XID | createBitmapFromImage (const QImage &image) |
Static Public Member Functions inherited from QPlatformPixmap | |
| static QPlatformPixmap * | create (int w, int h, PixelType type) |
Friends | |
| class | QX11PaintEngine |
| const QXcbX11Info & | qt_x11Info (const QPixmap &pixmap) |
| void | qt_x11SetScreen (QPixmap &pixmap, int screen) |
Additional Inherited Members | |
Public Types inherited from QPlatformPixmap | |
| enum | PixelType { PixmapType , BitmapType } |
| enum | ClassId { RasterClass , DirectFBClass , BlitterClass , Direct2DClass , X11Class , CustomClass = 1024 } |
Protected Member Functions inherited from QPlatformPixmap | |
| void | setSerialNumber (int serNo) |
| void | setDetachNumber (int detNo) |
Protected Attributes inherited from QPlatformPixmap | |
| int | w |
| int | h |
| int | d |
| bool | is_null |
Definition at line 23 of file qpixmap_x11_p.h.
| QX11PlatformPixmap::QX11PlatformPixmap | ( | PixelType | pixelType | ) |
Definition at line 334 of file qpixmap_x11.cpp.
| QX11PlatformPixmap::~QX11PlatformPixmap | ( | ) |
Definition at line 340 of file qpixmap_x11.cpp.
References QImagePixmapCleanupHooks::executePlatformPixmapDestructionHooks().
Referenced by transformed().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 1157 of file qpixmap_x11.cpp.
References attrs, Qt::AutoColor, QPlatformPixmap::BitmapType, QPlatformPixmap::d, QXcbX11Info::display(), QBasicAtomicInteger< T >::fetchAndAddRelaxed(), fromImage(), QPlatformPixmap::is_null, qt_pixmap_serial, rect, QXcbX11Info::screen(), QPlatformPixmap::setSerialNumber(), QXcbX11Info::visual(), and X11.
Here is the call graph for this function:Definition at line 1692 of file qpixmap_x11.cpp.
References QXcbX11Info::appRootWindow(), Qt::black, QXcbX11Info::display(), QImage::Format_MonoLSB, QPlatformPixmap::h, QRgb, QColor::rgb(), and Qt::white.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 351 of file qpixmap_x11.cpp.
References devicePixelRatio(), QPlatformPixmap::pixelType(), and QPlatformPixmap::QX11PlatformPixmap.
Here is the call graph for this function:
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1662 of file qpixmap_x11.cpp.
Referenced by createCompatiblePlatformPixmap(), and metric().
Here is the caller graph for this function:Implements QPlatformPixmap.
Definition at line 1270 of file qpixmap_x11.cpp.
References QColor::alpha(), Qt::AutoColor, QPlatformPixmap::d, QPlatformPixmap::depth(), QXcbX11Info::display(), QImage::fill(), QImage::Format_ARGB32_Premultiplied, fromImage(), QPlatformPixmap::height(), QXcbColormap::instance(), Qt::OrderedAlphaDither, QXcbColormap::pixel(), PREMUL(), qGray(), QColor::rgb(), QColor::rgba(), QXcbX11Info::screen(), QPlatformPixmap::width(), and X11.
Referenced by setMask().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 432 of file qpixmap_x11.cpp.
References QXcbX11Info::appDepth(), Qt::AutoColor, Qt::AutoDither, Qt::AvoidDither, QSysInfo::BigEndian, QPlatformPixmap::BitmapType, QImage::bits(), QSysInfo::ByteOrder, QImage::colorCount(), Qt::ColorMode_Mask, Qt::ColorOnly, QImage::colorTable(), CYCLE, QPlatformPixmap::d, QList< T >::data(), defaultScreen, QXcbX11Info::depth(), QXcbX11Info::display(), dist(), Qt::Dither_Mask, Qt::DitherMode_Mask, QBasicAtomicInteger< T >::fetchAndAddRelaxed(), fmt, QImage::format(), QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_Indexed8, QImage::Format_MonoLSB, QImage::Format_RGB32, QBitmap::fromImage(), fromImage(), QXcbX11Info::fromScreen(), GET_PIXEL, GET_PIXEL_DITHER_TC, GET_PIXEL_DITHER_TC_OPT, QPlatformPixmap::h, QX11AlphaDetector::hasAlpha(), QX11AlphaDetector::hasXRenderAndAlpha(), highest_bit(), i, init(), QXcbColormap::instance(), QPlatformPixmap::is_null, j, lowest_bit(), Qt::MonoOnly, n_bits(), p2, PIX, pix, QXcbColormap::pixel(), QPlatformPixmap::pixelType(), Qt::PreferDither, Q_ASSERT, Q_CHECK_PTR(), Q_UNUSED, qAlpha(), qBlue(), qFatal, qGreen(), qMax(), qMin(), qRed(), QRgb, qRgb(), qRgba(), qSafeXDestroyImage(), qt_div_255(), qt_pixmap_serial, qt_x11_preferred_pixmap_depth, qWarning, rgb, QImage::scanLine(), QXcbX11Info::screen(), QXcbX11Info::setDepth(), setDevicePixelRatio(), setMask(), QPlatformPixmap::setSerialNumber(), Qt::ThresholdDither, QXcbX11Info::visual(), QPlatformPixmap::w, and X11.
Referenced by copy(), fill(), fromImage(), and qt_toX11Pixmap().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 46 of file qpixmap_x11_p.h.
Referenced by setMask(), and transformed().
Here is the caller graph for this function:
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1404 of file qpixmap_x11.cpp.
References QPlatformPixmap::d.
| bool QX11PlatformPixmap::isBackingStore | ( | ) | const |
Definition at line 1733 of file qpixmap_x11.cpp.
Referenced by QX11PaintEngine::begin().
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 1306 of file qpixmap_x11.cpp.
References QPlatformPixmap::d, QBitmap::fromImage(), mask(), QPlatformPixmap::QPixmap, QXcbX11Info::screen(), and toImage().
Referenced by mask(), and transformed().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1229 of file qpixmap_x11.cpp.
References QXcbX11Info::appDpiX(), QXcbX11Info::appDpiY(), QPlatformPixmap::d, devicePixelRatio(), QPaintDevice::devicePixelRatioFScale(), QXcbX11Info::display(), QPlatformPixmap::h, metric(), QPaintDevice::PdmDepth, QPaintDevice::PdmDevicePixelRatio, QPaintDevice::PdmDevicePixelRatioScaled, QPaintDevice::PdmDpiX, QPaintDevice::PdmDpiY, QPaintDevice::PdmHeight, QPaintDevice::PdmHeightMM, QPaintDevice::PdmNumColors, QPaintDevice::PdmPhysicalDpiX, QPaintDevice::PdmPhysicalDpiY, QPaintDevice::PdmWidth, QPaintDevice::PdmWidthMM, qWarning, QXcbX11Info::screen(), screen, and QPlatformPixmap::w.
Referenced by metric().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1621 of file qpixmap_x11.cpp.
References d, QXcbX11Info::display(), and QXcbX11Info::screen().
Here is the call graph for this function:
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 358 of file qpixmap_x11.cpp.
References QPlatformPixmap::BitmapType, QPlatformPixmap::d, defaultScreen, QXcbX11Info::depth(), QXcbX11Info::display(), QBasicAtomicInteger< T >::fetchAndAddRelaxed(), QXcbX11Info::fromScreen(), QPlatformPixmap::height(), QPlatformPixmap::is_null, QPlatformPixmap::pixelType(), qt_pixmap_serial, qt_x11_preferred_pixmap_depth, qWarning, QXcbX11Info::screen(), QPlatformPixmap::setSerialNumber(), QXcbX11Info::visual(), QPlatformPixmap::width(), and X11.
Referenced by setMask().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 1219 of file qpixmap_x11.cpp.
References QXcbX11Info::display(), and rect.
Here is the call graph for this function:Implements QPlatformPixmap.
Definition at line 1667 of file qpixmap_x11.cpp.
Referenced by fromImage().
Here is the caller graph for this function:| void QX11PlatformPixmap::setIsBackingStore | ( | bool | on | ) |
Definition at line 1738 of file qpixmap_x11.cpp.
Referenced by QXcbNativeBackingStore::beginPaint().
Here is the caller graph for this function:Reimplemented from QPlatformPixmap.
Definition at line 1324 of file qpixmap_x11.cpp.
References attrs, Qt::black, QPlatformPixmap::d, QPlatformPixmap::depth(), QXcbX11Info::display(), fill(), handle(), QPlatformPixmap::height(), QPixmap::isNull(), QPlatformPixmap::pixelType(), qt_x11Pixmap(), resize(), QXcbX11Info::screen(), QPlatformPixmap::width(), and x11PictureHandle().
Referenced by fromImage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1574 of file qpixmap_x11.cpp.
References toImage().
Referenced by mask(), toImage(), toImage(), and transformed().
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented from QPlatformPixmap.
Definition at line 1579 of file qpixmap_x11.cpp.
References QXcbX11Info::display(), Q_CHECK_PTR(), qSafeXDestroyImage(), rect, toImage(), and QXImageWrapper::xi.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 1415 of file qpixmap_x11.cpp.
References ~QX11PlatformPixmap(), Qt::color1, QPlatformPixmap::d, QPlatformPixmap::depth(), QXcbX11Info::display(), QBasicAtomicInteger< T >::fetchAndAddRelaxed(), QImage::Format_Mono, QImage::Format_MonoLSB, QBitmap::fromData(), QPixmap::fromImage(), QPlatformPixmap::h, handle(), QPlatformPixmap::height(), QTransform::inverted(), QPlatformPixmap::is_null, QTransform::m11(), QTransform::m22(), QTransform::map(), mask(), QPlatformPixmap::PixmapType, Q_CHECK_PTR(), qAbs(), qDebug, QPlatformPixmap::QPixmap, qRound(), qSafeXDestroyImage(), qt_pixmap_serial, qt_x11Pixmap(), qt_xForm_helper(), QT_XFORM_TYPE_LSBFIRST, QT_XFORM_TYPE_MSBFIRST, qWarning, QPlatformPixmap::QX11PlatformPixmap, QXcbX11Info::screen(), QPixmap::setMask(), QPlatformPixmap::setSerialNumber(), Qt::SmoothTransformation, toImage(), QBitmap::transformed(), QPixmap::trueMatrix(), QTransform::TxProject, QTransform::TxScale, QTransform::type(), QXcbX11Info::visual(), QPlatformPixmap::w, QPlatformPixmap::width(), QRect::width(), and X11.
Here is the call graph for this function:
|
inline |
Definition at line 48 of file qpixmap_x11_p.h.
| Pixmap QX11PlatformPixmap::x11ConvertToDefaultDepth | ( | ) |
Definition at line 1672 of file qpixmap_x11.cpp.
References QXcbX11Info::appDepth(), QPlatformPixmap::d, QXcbX11Info::display(), QXcbX11Info::visual(), X11, and XNone.
Here is the call graph for this function:
|
inline |
Definition at line 47 of file qpixmap_x11_p.h.
Referenced by setMask().
Here is the caller graph for this function:
|
friend |
Definition at line 118 of file qpixmap_x11_p.h.
Definition at line 294 of file qpixmap_x11.cpp.
|
friend |
Definition at line 60 of file qpixmap_x11_p.h.