KWin
Loading...
Searching...
No Matches
src
xwayland
databridge.h
Go to the documentation of this file.
1
/*
2
KWin - the KDE window manager
3
This file is part of the KDE project.
4
5
SPDX-FileCopyrightText: 2018 Roman Gilg <subdiff@gmail.com>
6
7
SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
#pragma once
10
11
#include "
effect/globals.h
"
12
13
#include <QAbstractNativeEventFilter>
14
#include <QObject>
15
#include <QPoint>
16
17
namespace
KWin
18
{
19
class
DataDeviceInterface;
20
class
SurfaceInterface;
21
class
Window
;
22
23
namespace
Xwl
24
{
25
class
Clipboard;
26
class
Dnd;
27
class
Primary
;
28
enum class
DragEventReply
;
29
36
class
DataBridge
:
public
QObject,
public
QAbstractNativeEventFilter
37
{
38
Q_OBJECT
39
40
public
:
41
explicit
DataBridge
();
42
43
DragEventReply
dragMoveFilter
(
Window
*target);
44
45
Dnd
*
dnd
()
const
46
{
47
return
m_dnd;
48
}
49
50
bool
nativeEventFilter
(
const
QByteArray &eventType,
void
*message, qintptr *result)
override
;
51
52
private
:
53
void
init();
54
55
Clipboard
*m_clipboard =
nullptr
;
56
Dnd
*m_dnd =
nullptr
;
57
Primary
*m_primary =
nullptr
;
58
};
59
60
}
// namespace Xwl
61
}
// namespace KWin
KWin::Window
Definition
window.h:61
KWin::Xwl::Clipboard
Definition
clipboard.h:29
KWin::Xwl::DataBridge
Definition
databridge.h:37
KWin::Xwl::DataBridge::DataBridge
DataBridge()
Definition
databridge.cpp:30
KWin::Xwl::DataBridge::dnd
Dnd * dnd() const
Definition
databridge.h:45
KWin::Xwl::DataBridge::dragMoveFilter
DragEventReply dragMoveFilter(Window *target)
Definition
databridge.cpp:52
KWin::Xwl::DataBridge::nativeEventFilter
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override
Definition
databridge.cpp:43
KWin::Xwl::Dnd
Definition
dnd.h:34
KWin::Xwl::Primary
Definition
primary.h:29
Window
Definition
copy.cpp:16
globals.h
PlaneType::Primary
@ Primary
KWin::Xwl::DragEventReply
DragEventReply
Definition
xwayland_interface.h:24
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0