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
qwaylanddrag.h
Go to the documentation of this file.
1// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWAYLANDDRAG_H
5#define QWAYLANDDRAG_H
6
7#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
8#include <QtWaylandCompositor/qtwaylandqmlinclude.h>
9
10#include <QtCore/QObject>
11#include <QtCore/QPointF>
12
13QT_REQUIRE_CONFIG(draganddrop);
14
16
18class QWaylandSurface;
19class QWaylandSeat;
20
21class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandDrag : public QObject
22{
24 Q_DECLARE_PRIVATE(QWaylandDrag)
25
26 Q_PROPERTY(QWaylandSurface *icon READ icon NOTIFY iconChanged)
27 Q_PROPERTY(bool visible READ visible NOTIFY iconChanged)
28 Q_MOC_INCLUDE("qwaylandsurface.h")
29
30 QML_NAMED_ELEMENT(WaylandDrag)
33public:
35
36 QWaylandSurface *icon() const;
37 QWaylandSurface *origin() const;
38 QWaylandSeat *seat() const;
39 bool visible() const;
40
41public Q_SLOTS:
42 void dragMove(QWaylandSurface *target, const QPointF &pos);
43 void drop();
44 void cancelDrag();
45
47 void iconChanged();
48 void dragStarted(); // QWaylandSurface *icon????
49};
50
52
53#endif // QWAYLANDDRAG_H
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:217
\qmltype WaylandSeat \instantiates QWaylandSeat \inqmlmodule QtWayland.Compositor
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
Combined button and popup list for selecting options.
GLenum target
GLfloat GLfloat GLfloat GLfloat h
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_MOC_INCLUDE(...)
#define Q_SIGNALS
#define explicit