KWin
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
xdgtopleveldrag_v1.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2023 David Redondo <kde@david-redondo.de>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#pragma once
8
9#include <QObject>
10
11#include <memory>
12
13#include "datadevice.h"
14
15struct wl_resource;
16
17namespace KWin
18{
19
20class DataOfferInterface;
21class DataSourceInterface;
22class Display;
23class XdgToplevelDragV1InterfacePrivate;
24class XdgToplevelDragManagerV1InterfacePrivate;
25class XdgToplevelInterface;
26
27class XdgToplevelDragV1Interface : public QObject
28{
29 Q_OBJECT
30public:
32
35 QPoint offset() const;
36
37Q_SIGNALS:
39
40private:
42 std::unique_ptr<XdgToplevelDragV1InterfacePrivate> d;
44};
45
47{
48 Q_OBJECT
49public:
50 XdgToplevelDragManagerV1Interface(Display *display, QObject *parent = nullptr);
52
53private:
54 std::unique_ptr<XdgToplevelDragManagerV1InterfacePrivate> d;
55};
56}
Represents the Resource for the wl_data_source interface.
Definition datasource.h:23
Class holding the Wayland server display loop.
Definition display.h:34
XdgToplevelDragManagerV1Interface(Display *display, QObject *parent=nullptr)
XdgToplevelInterface * toplevel() const
DataSourceInterface * dataSource()
struct _XDisplay Display