![]() |
Qt 6.x
The Qt SDK
|
#include "qxcbscreen.h"
#include <QtCore/QPair>
#include <QtGui/QImage>
#include <QtGui/QPixmap>
#include <xcb/xcb_image.h>
Go to the source code of this file.
Functions | |
QT_BEGIN_NAMESPACE bool | qt_xcb_imageFormatForVisual (QXcbConnection *connection, uint8_t depth, const xcb_visualtype_t *visual, QImage::Format *imageFormat, bool *needsRgbSwap=nullptr) |
QPixmap | qt_xcb_pixmapFromXPixmap (QXcbConnection *connection, xcb_pixmap_t pixmap, int width, int height, int depth, const xcb_visualtype_t *visual) |
xcb_pixmap_t | qt_xcb_XPixmapFromBitmap (QXcbScreen *screen, const QImage &image) |
xcb_cursor_t | qt_xcb_createCursorXRender (QXcbScreen *screen, const QImage &image, const QPoint &spot) |
xcb_cursor_t qt_xcb_createCursorXRender | ( | QXcbScreen * | screen, |
const QImage & | image, | ||
const QPoint & | spot | ||
) |
Definition at line 193 of file qxcbimage.cpp.
References QSysInfo::BigEndian, QSysInfo::ByteOrder, cursor, fmt, QImage::Format_ARGB32_Premultiplied, pix, Q_XCB_REPLY, qWarning, screen, QPoint::x(), and QPoint::y().
QT_BEGIN_NAMESPACE bool qt_xcb_imageFormatForVisual | ( | QXcbConnection * | connection, |
uint8_t | depth, | ||
const xcb_visualtype_t * | visual, | ||
QImage::Format * | imageFormat, | ||
bool * | needsRgbSwap = nullptr |
||
) |
Definition at line 68 of file qxcbimage.cpp.
References connection, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Invalid, QXcbIntegration::instance(), Q_ASSERT, qbswap(), and qWarning.
Referenced by QXcbScreen::format(), qt_xcb_pixmapFromXPixmap(), and QXcbWindow::setImageFormatForVisual().
QPixmap qt_xcb_pixmapFromXPixmap | ( | QXcbConnection * | connection, |
xcb_pixmap_t | pixmap, | ||
int | width, | ||
int | height, | ||
int | depth, | ||
const xcb_visualtype_t * | visual | ||
) |
Definition at line 117 of file qxcbimage.cpp.
References connection, QImage::Format_BGR30, QImage::Format_RGB30, QImage::Format_RGB32, QImage::Format_RGBX8888, QPixmap::fromImage(), pixmap, Q_XCB_REPLY_UNCHECKED, QRgb, and qt_xcb_imageFormatForVisual().
Referenced by QXcbScreen::grabWindow().
xcb_pixmap_t qt_xcb_XPixmapFromBitmap | ( | QXcbScreen * | screen, |
const QImage & | image | ||
) |
Definition at line 166 of file qxcbimage.cpp.
References Qt::black, QImage::Format_MonoLSB, i, map, QRgb, QColor::rgb(), screen, and Qt::white.