KWin
Loading...
Searching...
No Matches
src
wayland
appmenu.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2017 David Edmundson <kde@davidedmundson.co.uk>
3
4
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5
*/
6
#pragma once
7
8
#include "kwin_export.h"
9
10
#include <QObject>
11
#include <memory>
12
13
struct
wl_resource;
14
15
namespace
KWin
16
{
17
class
Display
;
18
class
SurfaceInterface;
19
class
AppMenuInterface;
20
21
class
AppMenuManagerInterfacePrivate;
22
class
AppMenuInterfacePrivate;
23
30
class
KWIN_EXPORT
AppMenuManagerInterface
:
public
QObject
31
{
32
Q_OBJECT
33
34
public
:
35
explicit
AppMenuManagerInterface
(
Display
*display, QObject *parent =
nullptr
);
36
~AppMenuManagerInterface
()
override
;
41
AppMenuInterface
*appMenuForSurface(
SurfaceInterface
*);
42
43
Q_SIGNALS:
47
void
appMenuCreated
(
KWin::AppMenuInterface
*);
48
49
private
:
50
std::unique_ptr<AppMenuManagerInterfacePrivate> d;
51
};
52
58
class
KWIN_EXPORT
AppMenuInterface
:
public
QObject
59
{
60
Q_OBJECT
61
public
:
65
struct
InterfaceAddress
66
{
68
QString
serviceName
;
70
QString
objectPath
;
71
};
72
~AppMenuInterface
()
override
;
73
77
InterfaceAddress
address()
const
;
78
82
SurfaceInterface
*surface()
const
;
83
84
Q_SIGNALS:
88
void
addressChanged
(
KWin::AppMenuInterface::InterfaceAddress
);
89
90
private
:
91
explicit
AppMenuInterface
(
SurfaceInterface
*s, wl_resource *resource);
92
friend
class
AppMenuManagerInterfacePrivate
;
93
94
std::unique_ptr<AppMenuInterfacePrivate> d;
95
};
96
97
}
KWin::AppMenuInterface
Definition
appmenu.h:59
KWin::AppMenuInterface::addressChanged
void addressChanged(KWin::AppMenuInterface::InterfaceAddress)
KWin::AppMenuManagerInterface
Definition
appmenu.h:31
KWin::AppMenuManagerInterface::appMenuCreated
void appMenuCreated(KWin::AppMenuInterface *)
KWin::AppMenuManagerInterfacePrivate
Definition
appmenu.cpp:20
KWin::Display
Class holding the Wayland server display loop.
Definition
display.h:34
KWin::SurfaceInterface
Resource representing a wl_surface.
Definition
surface.h:80
KWin
Definition
activation_test.cpp:20
KWin::AppMenuInterface::InterfaceAddress
Definition
appmenu.h:66
KWin::AppMenuInterface::InterfaceAddress::serviceName
QString serviceName
Definition
appmenu.h:68
KWin::AppMenuInterface::InterfaceAddress::objectPath
QString objectPath
Definition
appmenu.h:70
Display
struct _XDisplay Display
Definition
x11_standalone_egl_backend.h:18
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0