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
qwaylandqtshellchrome_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 GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QWAYLANDQTSHELLCHROME_P_H
6
#
define
QWAYLANDQTSHELLCHROME_P_H
7
8
#
include
"qwaylandqtshell.h"
9
10
#
include
<
QtCore
/
qpointer
.
h
>
11
#
include
<
QtQuick
/
private
/
qquickitem_p
.
h
>
12
#
include
<
QtQuick
/
private
/
qquickdraghandler_p
.
h
>
13
14
#
include
<
QtWaylandCompositor
/
qwaylandquickshellsurfaceitem
.
h
>
15
16
//
17
// W A R N I N G
18
// -------------
19
//
20
// This file is not part of the Qt API. It exists purely as an
21
// implementation detail. This header file may change from version to
22
// version without notice, or even be removed.
23
//
24
// We mean it.
25
//
26
27
QT_BEGIN_NAMESPACE
28
29
class
QWaylandQtShellChromePrivate
:
public
QQuickItemPrivate
30
{
31
public
:
32
void
updateDecorationInteraction
(quint8 flags,
const
QQuickHandlerPoint ¢roid);
33
QPointF
constrainPoint
(
const
QPointF &point)
const
;
34
35
bool
positionSet
=
false
;
36
bool
automaticFrameMargins
=
true
;
37
QMargins
explicitFrameMargins
;
38
39
uint
currentState
=
Qt
::
WindowNoState
;
40
uint
defaultFlags
=
Qt
::
Window
41
|
Qt
::
WindowMaximizeButtonHint
42
|
Qt
::
WindowMinimizeButtonHint
43
|
Qt
::
WindowCloseButtonHint
;
44
uint
currentFlags
=
defaultFlags
;
45
QRect
restoreGeometry
=
QRect
(0, 0, 100, 100);
46
QRect
maximizedRect
;
47
QPointer
<
QWaylandQuickShellSurfaceItem
>
shellSurfaceItem
;
48
QPointer
<
QWaylandQtShellSurface
>
shellSurface
;
49
QPointer
<
QWaylandSurface
>
surface
;
50
QPointer
<
QWaylandQtShell
>
shell
;
51
52
enum
class
DecorationInteraction
:
quint8
{
53
None
= 0,
54
WestBound
= 1,
55
EastBound
= 2,
56
NorthBound
= 4,
57
SouthBound
= 8,
58
TitleBar
= 16
59
};
60
61
quint8
decorationInteraction
=
quint8
(
DecorationInteraction
::
None
);
62
QPointF
decorationInteractionPosition
;
63
QRect
decorationInteractionGeometry
;
64
65
QQuickItem
*
leftResizeHandle
=
nullptr
;
66
QQuickDragHandler
*
leftResizeHandleHandler
=
nullptr
;
67
QQuickDragHandler
*
rightResizeHandleHandler
=
nullptr
;
68
QQuickDragHandler
*
topResizeHandleHandler
=
nullptr
;
69
QQuickDragHandler
*
bottomResizeHandleHandler
=
nullptr
;
70
QQuickDragHandler
*
topLeftResizeHandleHandler
=
nullptr
;
71
QQuickDragHandler
*
topRightResizeHandleHandler
=
nullptr
;
72
QQuickDragHandler
*
bottomLeftResizeHandleHandler
=
nullptr
;
73
QQuickDragHandler
*
bottomRightResizeHandleHandler
=
nullptr
;
74
QQuickDragHandler
*
titleBarHandler
=
nullptr
;
75
76
QQuickItem
*
rightResizeHandle
=
nullptr
;
77
QQuickItem
*
topResizeHandle
=
nullptr
;
78
QQuickItem
*
bottomResizeHandle
=
nullptr
;
79
QQuickItem
*
topLeftResizeHandle
=
nullptr
;
80
QQuickItem
*
bottomLeftResizeHandle
=
nullptr
;
81
QQuickItem
*
topRightResizeHandle
=
nullptr
;
82
QQuickItem
*
bottomRightResizeHandle
=
nullptr
;
83
QQuickItem
*
titleBar
=
nullptr
;
84
};
85
86
QT_END_NAMESPACE
87
88
#
endif
// QWAYLANDQTSHELLCHROME_P_H
QWaylandQtShellChromePrivate
Definition
qwaylandqtshellchrome_p.h:30
QWaylandQtShellChromePrivate::updateDecorationInteraction
void updateDecorationInteraction(quint8 flags, const QQuickHandlerPoint ¢roid)
Definition
qwaylandqtshellchrome.cpp:23
QWaylandQtShellChromePrivate::topLeftResizeHandleHandler
QQuickDragHandler * topLeftResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:70
QWaylandQtShellChromePrivate::topRightResizeHandleHandler
QQuickDragHandler * topRightResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:71
QWaylandQtShellChromePrivate::bottomRightResizeHandleHandler
QQuickDragHandler * bottomRightResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:73
QWaylandQtShellChromePrivate::topResizeHandle
QQuickItem * topResizeHandle
Definition
qwaylandqtshellchrome_p.h:77
QWaylandQtShellChromePrivate::constrainPoint
QPointF constrainPoint(const QPointF &point) const
Definition
qwaylandqtshellchrome.cpp:13
QWaylandQtShellChromePrivate::decorationInteractionGeometry
QRect decorationInteractionGeometry
Definition
qwaylandqtshellchrome_p.h:63
QWaylandQtShellChromePrivate::bottomLeftResizeHandle
QQuickItem * bottomLeftResizeHandle
Definition
qwaylandqtshellchrome_p.h:80
QWaylandQtShellChromePrivate::bottomRightResizeHandle
QQuickItem * bottomRightResizeHandle
Definition
qwaylandqtshellchrome_p.h:82
QWaylandQtShellChromePrivate::maximizedRect
QRect maximizedRect
Definition
qwaylandqtshellchrome_p.h:46
QWaylandQtShellChromePrivate::bottomResizeHandle
QQuickItem * bottomResizeHandle
Definition
qwaylandqtshellchrome_p.h:78
QWaylandQtShellChromePrivate::automaticFrameMargins
bool automaticFrameMargins
Definition
qwaylandqtshellchrome_p.h:36
QWaylandQtShellChromePrivate::restoreGeometry
QRect restoreGeometry
Definition
qwaylandqtshellchrome_p.h:45
QWaylandQtShellChromePrivate::decorationInteractionPosition
QPointF decorationInteractionPosition
Definition
qwaylandqtshellchrome_p.h:62
QWaylandQtShellChromePrivate::shellSurface
QPointer< QWaylandQtShellSurface > shellSurface
Definition
qwaylandqtshellchrome_p.h:48
QWaylandQtShellChromePrivate::leftResizeHandle
QQuickItem * leftResizeHandle
Definition
qwaylandqtshellchrome_p.h:65
QWaylandQtShellChromePrivate::topLeftResizeHandle
QQuickItem * topLeftResizeHandle
Definition
qwaylandqtshellchrome_p.h:79
QWaylandQtShellChromePrivate::bottomResizeHandleHandler
QQuickDragHandler * bottomResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:69
QWaylandQtShellChromePrivate::titleBar
QQuickItem * titleBar
Definition
qwaylandqtshellchrome_p.h:83
QWaylandQtShellChromePrivate::positionSet
bool positionSet
Definition
qwaylandqtshellchrome_p.h:35
QWaylandQtShellChromePrivate::decorationInteraction
quint8 decorationInteraction
Definition
qwaylandqtshellchrome_p.h:61
QWaylandQtShellChromePrivate::shellSurfaceItem
QPointer< QWaylandQuickShellSurfaceItem > shellSurfaceItem
Definition
qwaylandqtshellchrome_p.h:47
QWaylandQtShellChromePrivate::surface
QPointer< QWaylandSurface > surface
Definition
qwaylandqtshellchrome_p.h:49
QWaylandQtShellChromePrivate::DecorationInteraction
DecorationInteraction
Definition
qwaylandqtshellchrome_p.h:52
QWaylandQtShellChromePrivate::DecorationInteraction::SouthBound
@ SouthBound
Definition
qwaylandqtshellchrome_p.h:57
QWaylandQtShellChromePrivate::DecorationInteraction::EastBound
@ EastBound
Definition
qwaylandqtshellchrome_p.h:55
QWaylandQtShellChromePrivate::DecorationInteraction::None
@ None
Definition
qwaylandqtshellchrome_p.h:53
QWaylandQtShellChromePrivate::DecorationInteraction::TitleBar
@ TitleBar
Definition
qwaylandqtshellchrome_p.h:58
QWaylandQtShellChromePrivate::DecorationInteraction::NorthBound
@ NorthBound
Definition
qwaylandqtshellchrome_p.h:56
QWaylandQtShellChromePrivate::DecorationInteraction::WestBound
@ WestBound
Definition
qwaylandqtshellchrome_p.h:54
QWaylandQtShellChromePrivate::topRightResizeHandle
QQuickItem * topRightResizeHandle
Definition
qwaylandqtshellchrome_p.h:81
QWaylandQtShellChromePrivate::currentState
uint currentState
Definition
qwaylandqtshellchrome_p.h:39
QWaylandQtShellChromePrivate::bottomLeftResizeHandleHandler
QQuickDragHandler * bottomLeftResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:72
QWaylandQtShellChromePrivate::rightResizeHandleHandler
QQuickDragHandler * rightResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:67
QWaylandQtShellChromePrivate::currentFlags
uint currentFlags
Definition
qwaylandqtshellchrome_p.h:44
QWaylandQtShellChromePrivate::explicitFrameMargins
QMargins explicitFrameMargins
Definition
qwaylandqtshellchrome_p.h:37
QWaylandQtShellChromePrivate::defaultFlags
uint defaultFlags
Definition
qwaylandqtshellchrome_p.h:40
QWaylandQtShellChromePrivate::shell
QPointer< QWaylandQtShell > shell
Definition
qwaylandqtshellchrome_p.h:50
QWaylandQtShellChromePrivate::topResizeHandleHandler
QQuickDragHandler * topResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:68
QWaylandQtShellChromePrivate::titleBarHandler
QQuickDragHandler * titleBarHandler
Definition
qwaylandqtshellchrome_p.h:74
QWaylandQtShellChromePrivate::leftResizeHandleHandler
QQuickDragHandler * leftResizeHandleHandler
Definition
qwaylandqtshellchrome_p.h:66
QWaylandQtShellChromePrivate::rightResizeHandle
QQuickItem * rightResizeHandle
Definition
qwaylandqtshellchrome_p.h:76
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
randomPos
static int randomPos(int windowSize, int screenSize)
Definition
qwaylandqtshellchrome.cpp:1392
qtwayland
src
imports
compositor-extensions
qtshell
qwaylandqtshellchrome_p.h
Generated on
for Qt by
1.18.0