525d12bee5
If you want git blame to ignore formatting revisions run: git config blame.ignoreRevsFile .git-blame-ignore-revs
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
/*
|
|
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "xdgdecoration_v1_interface.h"
|
|
|
|
#include "qwayland-server-xdg-decoration-unstable-v1.h"
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
class XdgDecorationManagerV1InterfacePrivate : public QtWaylandServer::zxdg_decoration_manager_v1
|
|
{
|
|
public:
|
|
XdgDecorationManagerV1InterfacePrivate(XdgDecorationManagerV1Interface *manager);
|
|
|
|
XdgDecorationManagerV1Interface *q;
|
|
|
|
protected:
|
|
void zxdg_decoration_manager_v1_destroy(Resource *resource) override;
|
|
void zxdg_decoration_manager_v1_get_toplevel_decoration(Resource *resource, uint32_t id, ::wl_resource *toplevel) override;
|
|
};
|
|
|
|
class XdgToplevelDecorationV1InterfacePrivate : public QtWaylandServer::zxdg_toplevel_decoration_v1
|
|
{
|
|
public:
|
|
XdgToplevelDecorationV1InterfacePrivate(XdgToplevelDecorationV1Interface *decoration);
|
|
|
|
XdgToplevelDecorationV1Interface *q;
|
|
XdgToplevelInterface *toplevel;
|
|
XdgToplevelDecorationV1Interface::Mode preferredMode = XdgToplevelDecorationV1Interface::Mode::Undefined;
|
|
|
|
protected:
|
|
void zxdg_toplevel_decoration_v1_destroy_resource(Resource *resource) override;
|
|
void zxdg_toplevel_decoration_v1_destroy(Resource *resource) override;
|
|
void zxdg_toplevel_decoration_v1_set_mode(Resource *resource, uint32_t mode) override;
|
|
void zxdg_toplevel_decoration_v1_unset_mode(Resource *resource) override;
|
|
};
|
|
|
|
} // namespace KWaylandServer
|