Debian Codegraph @

src/wayland/xdgdecoration_v1.h

raw symbols SCIP
1 /*
2 SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <[email protected]>
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 "kwin_export.h"cxx . . $ `<file>/build/src/kwin_export.h`/
10
11 #include <QObject>
12 #include <memory>
13
14 struct wl_resourcecxx . . $ wl_resource#;
15
16 namespace KWincxx . . $ KWin/
17 {
18 class Displaycxx . . $ KWin/Display#;
19 class XdgDecorationManagerV1InterfacePrivatecxx . . $ KWin/XdgDecorationManagerV1InterfacePrivate#;
20 class XdgToplevelDecorationV1Interfacecxx . . $ KWin/XdgToplevelDecorationV1Interface#;
21 class XdgToplevelDecorationV1InterfacePrivatecxx . . $ KWin/XdgToplevelDecorationV1InterfacePrivate#;
22 class XdgToplevelInterfacecxx . . $ KWin/XdgToplevelInterface#;
23
24 /**
25 * The XdgDecorationManagerV1Interface class provides a way for the compositor and an xdg-shell
26 * client to negotiate the use of server-side window decorations.
27 *
28 * XdgDecorationManagerV1Interface corresponds to the interface \c zxdg_decoration_manager_v1.
29 */
30 class KWIN_EXPORTcxx . . $ `build/src/kwin_export.h:12:15`! XdgDecorationManagerV1Interfacecxx . . $ KWin/XdgDecorationManagerV1Interface# : public QObjectcxx . . $ QObject#
31 {
32 Q_OBJECTcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:133:9`!
33
34 public:
35 /**
36 * Constructs a decoration manager with the given \a display and \a parent.
37 */
38 XdgDecorationManagerV1Interfacecxx . . $ KWin/XdgDecorationManagerV1Interface#XdgDecorationManagerV1Interface(bd42d34c9ba5f17f).(Displaycxx . . $ KWin/Display# *display, QObjectcxx . . $ QObject# *parent = nullptr);
39 /**
40 * Destructs the XdgDecorationManagerV1Interface object.
41 */
42 ~cxx . . $ KWin/XdgDecorationManagerV1Interface#`~XdgDecorationManagerV1Interface`(49f6e7a06ebc5aa8).XdgDecorationManagerV1Interfacecxx . . $ KWin/XdgDecorationManagerV1Interface#() override;
43
44 Q_SIGNALScxx . . $ `<external>/4830994369567095248/qtmetamacros.h:47:10`!:
45 /**
46 * This signal is emitted when a new \a decoration has been created.
47 */
48 void decorationCreatedcxx . . $ KWin/XdgDecorationManagerV1Interface#decorationCreated(ba3e53298fe357be).(XdgToplevelDecorationV1Interfacecxx . . $ KWin/XdgToplevelDecorationV1Interface# *decoration);
49
50 private:
51 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<XdgDecorationManagerV1InterfacePrivatecxx . . $ KWin/XdgDecorationManagerV1InterfacePrivate#> dcxx . . $ KWin/XdgDecorationManagerV1Interface#d.;
52 };
53
54 /**
55 * The XdgToplevelDecorationV1Interface class allows the compositor to toggle server-side window
56 * decoration on an xdg-toplevel surface.
57 *
58 * XdgToplevelDecorationV1Interface corresponds to the interface \c zxdg_toplevel_decoration_v1.
59 */
60 class KWIN_EXPORTcxx . . $ `build/src/kwin_export.h:12:15`! XdgToplevelDecorationV1Interfacecxx . . $ KWin/XdgToplevelDecorationV1Interface# : public QObjectcxx . . $ QObject#
61 {
62 Q_OBJECTcxx . . $ KWin/XdgToplevelDecorationV1Interface#qt_staticMetaObjectContent.
63
64 public:
65 enum class Modecxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode# {
66 Undefinedcxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode#Undefined.,
67 Nonecxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode#None.,
68 Clientcxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode#Client.,
69 Servercxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode#Server.,
70 };
71 Q_ENUMcxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode#(Mode)
72
73 /**
74 * Constructs a XdgToplevelDecorationV1Interface for the given \a toplevel and initializes
75 * it with \a resource.
76 */
77 XdgToplevelDecorationV1Interfacecxx . . $ KWin/XdgToplevelDecorationV1Interface#XdgToplevelDecorationV1Interface(1dd838365ca2ce65).(XdgToplevelInterfacecxx . . $ KWin/XdgToplevelInterface# *toplevel, ::wl_resourcecxx . . $ wl_resource# *resource);
78 /**
79 * Destructs the XdgToplevelDecorationV1Interface object.
80 */
81 ~cxx . . $ KWin/XdgToplevelDecorationV1Interface#`~XdgToplevelDecorationV1Interface`(49f6e7a06ebc5aa8).XdgToplevelDecorationV1Interfacecxx . . $ KWin/XdgToplevelDecorationV1Interface#() override;
82
83 /**
84 * Returns the toplevel for this XdgToplevelDecorationV1Interface.
85 */
86 XdgToplevelInterfacecxx . . $ KWin/XdgToplevelInterface# *toplevelcxx . . $ KWin/XdgToplevelDecorationV1Interface#toplevel(21ae85af549b5a5c).() const;
87 /**
88 * Returns the decoration mode preferred by the client.
89 */
90 Modecxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode# preferredModecxx . . $ KWin/XdgToplevelDecorationV1Interface#preferredMode(2890d333a9ba493).() const;
91 /**
92 * Sends a configure event to the client. \a mode indicates the decoration mode the client
93 * should be using. The client must send an ack_configure in response to this event.
94 *
95 * \see XdgToplevelInterface::sendConfigure
96 */
97 void sendConfigurecxx . . $ KWin/XdgToplevelDecorationV1Interface#sendConfigure(98300e7c1422e7b2).(Modecxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode# mode);
98
99 /**
100 * Returns the XdgToplevelDecorationV1Interface for the specified \a toplevel.
101 */
102 static XdgToplevelDecorationV1Interfacecxx . . $ KWin/XdgToplevelDecorationV1Interface# *getcxx . . $ KWin/XdgToplevelDecorationV1Interface#get(afff402a772fbcdc).(XdgToplevelInterfacecxx . . $ KWin/XdgToplevelInterface# *toplevel);
103
104 Q_SIGNALScxx . . $ `<external>/4830994369567095248/qtmetamacros.h:47:10`!:
105 /**
106 * This signal is emitted when the client has specified the preferred decoration mode. The
107 * compositor can decide not to use the client's mode and enforce a different mode instead.
108 */
109 void preferredModeChangedcxx . . $ KWin/XdgToplevelDecorationV1Interface#preferredModeChanged(98300e7c1422e7b2).(KWincxx . . $ KWin/::XdgToplevelDecorationV1Interfacecxx . . $ KWin/XdgToplevelDecorationV1Interface#::Modecxx . . $ KWin/XdgToplevelDecorationV1Interface#Mode# mode);
110
111 private:
112 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<XdgToplevelDecorationV1InterfacePrivatecxx . . $ KWin/XdgToplevelDecorationV1InterfacePrivate#> dcxx . . $ KWin/XdgToplevelDecorationV1Interface#d.;
113 };
114
115 } // namespace KWin