KDecoration2

decoratedclientprivate.cpp
1/*
2 * SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6#include "decoratedclientprivate.h"
7
8#include <QColor>
9
10namespace KDecoration2
11{
12class Q_DECL_HIDDEN DecoratedClientPrivate::Private
13{
14public:
15 explicit Private(DecoratedClient *client, Decoration *decoration);
16 DecoratedClient *client;
17 Decoration *decoration;
18};
19
20DecoratedClientPrivate::Private::Private(DecoratedClient *client, Decoration *decoration)
21 : client(client)
22 , decoration(decoration)
23{
24}
25
26DecoratedClientPrivate::DecoratedClientPrivate(DecoratedClient *client, Decoration *decoration)
27 : d(new Private(client, decoration))
28{
29}
30
31DecoratedClientPrivate::~DecoratedClientPrivate() = default;
32
33Decoration *DecoratedClientPrivate::decoration()
34{
35 return d->decoration;
36}
37
38Decoration *DecoratedClientPrivate::decoration() const
39{
40 return d->decoration;
41}
42
43DecoratedClient *DecoratedClientPrivate::client()
44{
45 return d->client;
46}
47
48QColor DecoratedClientPrivate::color(ColorGroup group, ColorRole role) const
49{
50 Q_UNUSED(role)
51 Q_UNUSED(group)
52
53 return QColor();
54}
55
56ApplicationMenuEnabledDecoratedClientPrivate::ApplicationMenuEnabledDecoratedClientPrivate(DecoratedClient *client, Decoration *decoration)
57 : DecoratedClientPrivate(client, decoration)
58{
59}
60
61ApplicationMenuEnabledDecoratedClientPrivate::~ApplicationMenuEnabledDecoratedClientPrivate() = default;
62
63}
Framework for creating window decorations.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.