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>.
|
#include <qpixmap_x11_p.h>
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 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) |
int | serialNumber () const |
PixelType | pixelType () const |
ClassId | classId () const |
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().
|
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(), gc(), QPlatformPixmap::is_null, qt_pixmap_serial, rect, QPlatformPixmap::setSerialNumber(), QXcbX11Info::visual(), and X11.
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.
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 351 of file qpixmap_x11.cpp.
References devicePixelRatio(), QPlatformPixmap::pixelType(), and QPlatformPixmap::QX11PlatformPixmap.
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1662 of file qpixmap_x11.cpp.
Referenced by createCompatiblePlatformPixmap(), and metric().
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(), gc(), QPlatformPixmap::height(), QXcbColormap::instance(), Qt::OrderedAlphaDither, PREMUL(), qGray(), QColor::rgb(), QColor::rgba(), QXcbX11Info::screen(), QPlatformPixmap::width(), and X11.
Referenced by setMask().
|
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, QSysInfo::ByteOrder, Qt::ColorMode_Mask, Qt::ColorOnly, CYCLE, QPlatformPixmap::d, defaultScreen, QXcbX11Info::depth(), QXcbX11Info::display(), dist(), Qt::Dither_Mask, Qt::DitherMode_Mask, QBasicAtomicInteger< T >::fetchAndAddRelaxed(), fmt, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_Indexed8, QImage::Format_MonoLSB, QImage::Format_RGB32, QBitmap::fromImage(), fromImage(), QXcbX11Info::fromScreen(), gc(), GET_PIXEL, GET_PIXEL_DITHER_TC, GET_PIXEL_DITHER_TC_OPT, QPlatformPixmap::h, 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, QXcbX11Info::screen(), QXcbX11Info::setDepth(), setDevicePixelRatio(), setMask(), QPlatformPixmap::setSerialNumber(), Qt::ThresholdDither, QXcbX11Info::visual(), QPlatformPixmap::w, and X11.
Referenced by copy(), fill(), fromImage(), and qt_toX11Pixmap().
|
inline |
Definition at line 46 of file qpixmap_x11_p.h.
Referenced by setMask(), and transformed().
|
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.
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 1306 of file qpixmap_x11.cpp.
References QPlatformPixmap::d, QBitmap::fromImage(), QBitmap::fromPixmap(), mask(), QPlatformPixmap::QPixmap, QXcbX11Info::screen(), and toImage().
Referenced by mask(), and transformed().
|
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().
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1621 of file qpixmap_x11.cpp.
References d, QXcbX11Info::display(), gc(), and QXcbX11Info::screen().
|
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().
|
overridevirtual |
Reimplemented from QPlatformPixmap.
Definition at line 1219 of file qpixmap_x11.cpp.
References QXcbX11Info::display(), gc(), and rect.
Implements QPlatformPixmap.
Definition at line 1667 of file qpixmap_x11.cpp.
Referenced by fromImage().
void QX11PlatformPixmap::setIsBackingStore | ( | bool | on | ) |
Definition at line 1738 of file qpixmap_x11.cpp.
Reimplemented from QPlatformPixmap.
Definition at line 1324 of file qpixmap_x11.cpp.
References attrs, Qt::black, QPlatformPixmap::d, QPlatformPixmap::depth(), QXcbX11Info::display(), fill(), gc(), handle(), QPlatformPixmap::height(), QPlatformPixmap::pixelType(), qt_x11Pixmap(), resize(), QXcbX11Info::screen(), QPlatformPixmap::width(), and x11PictureHandle().
Referenced by fromImage().
|
overridevirtual |
Implements QPlatformPixmap.
Definition at line 1574 of file qpixmap_x11.cpp.
References toImage().
Referenced by mask(), toImage(), toImage(), and transformed().
Reimplemented from QPlatformPixmap.
Definition at line 1579 of file qpixmap_x11.cpp.
References QXcbX11Info::display(), Q_CHECK_PTR(), qSafeXDestroyImage(), rect, toImage(), and QXImageWrapper::xi.
|
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(), gc(), QPlatformPixmap::h, handle(), QPlatformPixmap::height(), 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(), Qt::SmoothTransformation, toImage(), QBitmap::transformed(), QPixmap::trueMatrix(), QTransform::TxProject, QTransform::TxScale, QPlatformPixmap::w, QPlatformPixmap::width(), QRect::width(), and X11.
|
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.
|
inline |
Definition at line 47 of file qpixmap_x11_p.h.
Referenced by setMask().
|
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.