Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qxcbimage.h File Reference
#include "qxcbscreen.h"
#include <QtCore/QPair>
#include <QtGui/QImage>
#include <QtGui/QPixmap>
#include <xcb/xcb_image.h>
+ Include dependency graph for qxcbimage.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ qt_xcb_createCursorXRender()

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().

+ Here is the call graph for this function:

◆ qt_xcb_imageFormatForVisual()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_xcb_pixmapFromXPixmap()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_xcb_XPixmapFromBitmap()

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.

+ Here is the call graph for this function: