1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #pragma once |
5 | |
6 | #include "qxcbscreen.h" |
7 | #include <QtGui/QImage> |
8 | #include <QtGui/QPixmap> |
9 | #include <xcb/xcb_image.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | bool qt_xcb_imageFormatForVisual(QXcbConnection *connection, uint8_t depth, const xcb_visualtype_t *visual, |
14 | QImage::Format *imageFormat, bool *needsRgbSwap = nullptr); |
15 | QPixmap qt_xcb_pixmapFromXPixmap(QXcbConnection *connection, xcb_pixmap_t pixmap, |
16 | int width, int height, int depth, |
17 | const xcb_visualtype_t *visual); |
18 | xcb_pixmap_t qt_xcb_XPixmapFromBitmap(QXcbScreen *screen, const QImage &image); |
19 | xcb_cursor_t qt_xcb_createCursorXRender(QXcbScreen *screen, const QImage &image, |
20 | const QPoint &spot); |
21 | |
22 | QT_END_NAMESPACE |
23 | |