Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwldatadevice_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:critical reason:network-protocol
4
5
#
ifndef
WLDATADEVICE_H
6
#
define
WLDATADEVICE_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
<
QtWaylandCompositor
/
private
/
qwayland
-
server
-
wayland
.
h
>
20
#
include
<
QtWaylandCompositor
/
private
/
qtwaylandcompositorglobal_p
.
h
>
21
#
include
<
QtWaylandCompositor
/
QWaylandSeat
>
22
23
QT_REQUIRE_CONFIG
(
wayland_datadevice
);
24
25
QT_BEGIN_NAMESPACE
26
27
namespace
QtWayland
{
28
29
class
Compositor;
30
class
DataSource
;
31
class
Seat;
32
class
Surface;
33
34
class
DataDevice
:
public
QtWaylandServer
::
wl_data_device
35
{
36
public
:
37
DataDevice
(QWaylandSeat *seat);
38
39
void
setFocus
(QWaylandClient *client);
40
void
sourceDestroyed
(
DataSource
*source);
41
42
#
if
QT_CONFIG
(
draganddrop
)
43
void
setDragFocus
(
QWaylandSurface
*
focus
,
const
QPointF
&
localPosition
);
44
45
QWaylandSurface
*
dragIcon
()
const
;
46
QWaylandSurface
*
dragOrigin
()
const
;
47
48
void
dragMove
(
QWaylandSurface
*
target
,
const
QPointF
&
pos
);
49
void
drop
();
50
void
cancelDrag
();
51
#
endif
52
53
protected
:
54
#
if
QT_CONFIG
(
draganddrop
)
55
void
data_device_start_drag
(
Resource
*
resource
,
struct
::
wl_resource
*
source
,
struct
::
wl_resource
*
origin
,
struct
::
wl_resource
*
icon
,
uint32_t
serial
)
override
;
56
#
endif
57
void
data_device_set_selection
(
Resource
*
resource
,
struct
::wl_resource *source, uint32_t serial)
override
;
58
59
private
:
60
#
if
QT_CONFIG
(
draganddrop
)
61
void
setDragIcon
(
QWaylandSurface
*
icon
);
62
#
endif
63
64
QWaylandCompositor *m_compositor =
nullptr
;
65
QWaylandSeat *m_seat =
nullptr
;
66
67
DataSource
*m_selectionSource =
nullptr
;
68
69
#
if
QT_CONFIG
(
draganddrop
)
70
struct
::
wl_client
*
m_dragClient
=
nullptr
;
71
DataSource
*
m_dragDataSource
=
nullptr
;
72
73
QWaylandSurface
*
m_dragFocus
=
nullptr
;
74
Resource
*
m_dragFocusResource
=
nullptr
;
75
76
QWaylandSurface
*
m_dragIcon
=
nullptr
;
77
QWaylandSurface
*
m_dragOrigin
=
nullptr
;
78
#
endif
79
};
80
81
}
82
83
QT_END_NAMESPACE
84
85
#
endif
// WLDATADEVICE_H
QtWayland::DataDevice
Definition
qwldatadevice_p.h:35
QtWayland::DataDevice::DataDevice
DataDevice(QWaylandSeat *seat)
Definition
qwldatadevice.cpp:28
QtWayland::DataDevice::sourceDestroyed
void sourceDestroyed(DataSource *source)
Definition
qwldatadevice.cpp:50
QtWayland::DataDevice::setFocus
void setFocus(QWaylandClient *client)
Definition
qwldatadevice.cpp:34
QtWayland::DataOffer
Definition
qwldataoffer_p.h:33
QtWayland::DataSource
Definition
qwldatasource_p.h:35
QtWayland::DataSource::cancel
void cancel()
Definition
qwldatasource.cpp:53
QtWayland::DataSource::setDevice
void setDevice(DataDevice *device)
Definition
qwldatasource.cpp:63
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtWayland
Definition
qwaylanddisplay_p.h:54
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(wayland_datadevice)
qtwayland
src
compositor
wayland_wrapper
qwldatadevice_p.h
Generated on
for Qt by
1.16.1