Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qtx11extras_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QTX11EXTRAS_P_H
6
#
define
QTX11EXTRAS_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtGui
/
qtguiglobal
.
h
>
20
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
21
22
#
include
<
xcb
/
xcb
.
h
>
23
24
typedef
struct
_XDisplay
Display
;
25
26
QT_BEGIN_NAMESPACE
27
28
class
Q_GUI_EXPORT
QX11Info
29
{
30
public
:
31
enum
PeekOption {
32
PeekDefault = 0,
33
PeekFromCachedIndex = 1
34
};
35
Q_DECLARE_FLAGS(PeekOptions, PeekOption)
36
37
static
bool
isPlatformX11();
38
39
static
int
appDpiX(
int
screen=-1);
40
static
int
appDpiY(
int
screen=-1);
41
42
static
quint32 appRootWindow(
int
screen=-1);
43
static
int
appScreen();
44
45
static
quint32 appTime();
46
static
quint32 appUserTime();
47
48
static
void
setAppTime(quint32 time);
49
static
void
setAppUserTime(quint32 time);
50
51
static
quint32 getTimestamp();
52
53
static
QByteArray nextStartupId();
54
static
void
setNextStartupId(
const
QByteArray &id);
55
56
static
Display *display();
57
static
xcb_connection_t *connection();
58
59
static
bool
isCompositingManagerRunning(
int
screen = -1);
60
61
static
qint32 generatePeekerId();
62
static
bool
removePeekerId(qint32 peekerId);
63
typedef
bool
(*PeekerCallback)(xcb_generic_event_t *event,
void
*peekerData);
64
static
bool
peekEventQueue(PeekerCallback peeker,
void
*peekerData =
nullptr
,
65
PeekOptions option = PeekDefault, qint32 peekerId = -1);
66
67
private
:
68
QX11Info();
69
};
70
71
Q_DECLARE_OPERATORS_FOR_FLAGS(QX11Info::PeekOptions)
72
73
QT_END_NAMESPACE
74
75
#
endif
// QTX11EXTRAS_P_H
QX11Info
\inmodule QtGui
Definition
qtx11extras_p.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qApp
#define qApp
Definition
qcoreapplication.h:38
findScreenForVirtualDesktop
static QScreen * findScreenForVirtualDesktop(int virtualDesktopNumber)
Definition
qtx11extras.cpp:23
Display
struct _XDisplay Display
Definition
qtx11extras_p.h:24
qtbase
src
gui
platform
unix
qtx11extras_p.h
Generated on
for Qt by
1.18.0