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
24
25QT_BEGIN_NAMESPACE
26
27namespace QtWayland {
28
29class Compositor;
30class DataSource;
31class Seat;
32class Surface;
33
35{
36public:
37 DataDevice(QWaylandSeat *seat);
38
39 void setFocus(QWaylandClient *client);
40 void sourceDestroyed(DataSource *source);
41
42#if QT_CONFIG(draganddrop)
44
47
49 void drop();
50 void cancelDrag();
51#endif
52
53protected:
54#if QT_CONFIG(draganddrop)
56#endif
57 void data_device_set_selection(Resource *resource, struct ::wl_resource *source, uint32_t serial) override;
58
59private:
60#if QT_CONFIG(draganddrop)
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;
72
75
76 QWaylandSurface *m_dragIcon = nullptr;
78#endif
79};
80
81}
82
83QT_END_NAMESPACE
84
85#endif // WLDATADEVICE_H
DataDevice(QWaylandSeat *seat)
void sourceDestroyed(DataSource *source)
void setFocus(QWaylandClient *client)
void setDevice(DataDevice *device)
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(wayland_datadevice)