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

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

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