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>.
Loading...
Searching...
No Matches
qxcbimage.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include "qxcbimage.h"
#include <QtCore/QtEndian>
#include <QtGui/QColor>
#include <QtGui/private/qimage_p.h>
#include <QtGui/private/qdrawhelper_p.h>
#include <xcb/render.h>
#include <xcb/xcb_renderutil.h>
#include "qxcbconnection.h"
#include "qxcbintegration.h"
+ Include dependency graph for qxcbimage.cpp:

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)
 
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, gc(), pix, Q_XCB_REPLY, qWarning, and screen.

+ 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 )

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: