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#ifndef QXCBIMAGE_H
5#define QXCBIMAGE_H
6
7#include "qxcbscreen.h"
8#include <QtCore/QPair>
9#include <QtGui/QImage>
10#include <QtGui/QPixmap>
11#include <xcb/xcb_image.h>
12
13QT_BEGIN_NAMESPACE
14
15bool qt_xcb_imageFormatForVisual(QXcbConnection *connection, uint8_t depth, const xcb_visualtype_t *visual,
16 QImage::Format *imageFormat, bool *needsRgbSwap = nullptr);
17QPixmap qt_xcb_pixmapFromXPixmap(QXcbConnection *connection, xcb_pixmap_t pixmap,
18 int width, int height, int depth,
19 const xcb_visualtype_t *visual);
20xcb_pixmap_t qt_xcb_XPixmapFromBitmap(QXcbScreen *screen, const QImage &image);
21xcb_cursor_t qt_xcb_createCursorXRender(QXcbScreen *screen, const QImage &image,
22 const QPoint &spot);
23
24QT_END_NAMESPACE
25
26#endif
27

source code of qtbase/src/plugins/platforms/xcb/qxcbimage.h