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
qxcbnativepainting.h
Go to the documentation of this file.
1// Copyright (C) 2018 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 QXCBNATIVEPAINTING_H
5#define QXCBNATIVEPAINTING_H
6
7#include <QSharedDataPointer>
8#include "qt_x11_p.h"
9
10typedef struct _FcPattern FcPattern;
11typedef unsigned long XID;
12typedef XID Colormap;
13typedef XID Window;
14typedef struct _XDisplay Display;
15
17
18class QXcbConnection;
19class QPixmap;
20
22QList<XRectangle> qt_region_to_xrectangles(const QRegion &r);
23
24class QXcbX11InfoData;
26{
27public:
32
33 static QXcbX11Info fromScreen(int screen);
34 static Display *display();
35
36 int depth() const;
37 void setDepth(int depth);
38
39 int screen() const;
40 Colormap colormap() const;
41
42 void *visual() const;
43 void setVisual(void *visual);
44
45 static int appScreen();
46 static int appDepth(int screen = -1);
47 static int appCells(int screen = -1);
48 static Colormap appColormap(int screen = -1);
49 static void *appVisual(int screen = -1);
50 static Window appRootWindow(int screen = -1);
51 static bool appDefaultColormap(int screen = -1);
52 static bool appDefaultVisual(int screen = -1);
53 static int appDpiX(int screen = -1);
54 static int appDpiY(int screen = -1);
55
56private:
57 QSharedDataPointer<QXcbX11InfoData> d;
58
59 friend class QX11PaintEngine;
60 friend class QX11PlatformPixmap;
61 friend void qt_x11SetScreen(QPixmap &pixmap, int screen);
62};
63
65
66#endif // QXCBNATIVEPAINTING_H
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
void setDepth(int depth)
static bool appDefaultVisual(int screen=-1)
static int appScreen()
static QXcbX11Info fromScreen(int screen)
static Colormap appColormap(int screen=-1)
static Window appRootWindow(int screen=-1)
static bool appDefaultColormap(int screen=-1)
friend void qt_x11SetScreen(QPixmap &pixmap, int screen)
static int appDepth(int screen=-1)
void setVisual(void *visual)
void * visual() const
static Display * display()
Colormap colormap() const
static int appDpiY(int screen=-1)
QXcbX11Info & operator=(const QXcbX11Info &other)
static int appCells(int screen=-1)
static void * appVisual(int screen=-1)
static int appDpiX(int screen=-1)
Combined button and popup list for selecting options.
GLint GLenum GLsizei GLsizei GLsizei depth
GLboolean r
[2]
unsigned long XID
struct _XDisplay Display
XID Colormap
unsigned long XID
QList< XRectangle > qt_region_to_xrectangles(const QRegion &r)
struct _XDisplay Display
XID Window
struct _FcPattern FcPattern
void qt_xcb_native_x11_info_init(QXcbConnection *conn)
QSharedPointer< T > other(t)
[5]
widget render & pixmap