KDecoration2

decoratedclientprivate.cpp
1 /*
2  * SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
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 
10 namespace KDecoration2
11 {
12 class Q_DECL_HIDDEN DecoratedClientPrivate::Private
13 {
14 public:
15  explicit Private(DecoratedClient *client, Decoration *decoration);
16  DecoratedClient *client;
17  Decoration *decoration;
18 };
19 
20 DecoratedClientPrivate::Private::Private(DecoratedClient *client, Decoration *decoration)
21  : client(client)
22  , decoration(decoration)
23 {
24 }
25 
26 DecoratedClientPrivate::DecoratedClientPrivate(DecoratedClient *client, Decoration *decoration)
27  : d(new Private(client, decoration))
28 {
29 }
30 
31 DecoratedClientPrivate::~DecoratedClientPrivate() = default;
32 
33 Decoration *DecoratedClientPrivate::decoration()
34 {
35  return d->decoration;
36 }
37 
38 Decoration *DecoratedClientPrivate::decoration() const
39 {
40  return d->decoration;
41 }
42 
43 DecoratedClient *DecoratedClientPrivate::client()
44 {
45  return d->client;
46 }
47 
48 QColor DecoratedClientPrivate::color(ColorGroup group, ColorRole role) const
49 {
50  Q_UNUSED(role)
51  Q_UNUSED(group)
52 
53  return QColor();
54 }
55 
56 ApplicationMenuEnabledDecoratedClientPrivate::ApplicationMenuEnabledDecoratedClientPrivate(DecoratedClient *client, Decoration *decoration)
57  : DecoratedClientPrivate(client, decoration)
58 {
59 }
60 
61 ApplicationMenuEnabledDecoratedClientPrivate::~ApplicationMenuEnabledDecoratedClientPrivate() = default;
62 
63 }
Framework for creating window decorations.
ColorGroup
Color groups are used for DecoratedClient::color().
ColorRole
Color roles are used for DecoratedClient::color().
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Jun 20 2021 23:07:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.