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
11QT_BEGIN_NAMESPACE
12
13bool qt_xcb_imageFormatForVisual(QXcbConnection *connection, uint8_t depth, const xcb_visualtype_t *visual,
14 QImage::Format *imageFormat, bool *needsRgbSwap = nullptr);
15QPixmap qt_xcb_pixmapFromXPixmap(QXcbConnection *connection, xcb_pixmap_t pixmap,
16 int width, int height, int depth,
17 const xcb_visualtype_t *visual);
18xcb_pixmap_t qt_xcb_XPixmapFromBitmap(QXcbScreen *screen, const QImage &image);
19xcb_cursor_t qt_xcb_createCursorXRender(QXcbScreen *screen, const QImage &image,
20 const QPoint &spot);
21
22QT_END_NAMESPACE
23

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