KWin
Loading...
Searching...
No Matches
src
wayland
touch.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
3
SPDX-FileCopyrightText: 2020 Adrien Faveraux <ad1rie3@hotmail.fr>
4
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
5
6
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7
*/
8
#pragma once
9
10
#include "kwin_export.h"
11
12
#include <QObject>
13
#include <memory>
14
15
namespace
KWin
16
{
17
class
SeatInterface;
18
class
SurfaceInterface;
19
class
TouchInterfacePrivate;
20
25
class
KWIN_EXPORT
TouchInterface
:
public
QObject
26
{
27
Q_OBJECT
28
29
public
:
30
~TouchInterface
()
override
;
31
32
SurfaceInterface
*focusedSurface()
const
;
33
34
void
sendDown(qint32
id
, quint32 serial,
const
QPointF &localPos,
SurfaceInterface
*surface);
35
void
sendUp(qint32
id
, quint32 serial);
36
void
sendFrame();
37
void
sendCancel();
38
void
sendMotion(qint32
id
,
const
QPointF &localPos);
39
40
private
:
41
explicit
TouchInterface
(
SeatInterface
*seat);
42
std::unique_ptr<TouchInterfacePrivate> d;
43
44
friend
class
SeatInterfacePrivate
;
45
friend
class
TouchInterfacePrivate
;
46
};
47
48
}
// namespace KWin
KWin::SeatInterface
Represents a Seat on the Wayland Display.
Definition
seat.h:134
KWin::SeatInterfacePrivate
Definition
seat_p.h:34
KWin::SurfaceInterface
Resource representing a wl_surface.
Definition
surface.h:80
KWin::TouchInterface
Definition
touch.h:26
KWin::TouchInterfacePrivate
Definition
touch_p.h:20
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0