LibKmahjongg

kmahjonggbackground.h
1 /*
2  SPDX-FileCopyrightText: 1997 Mathias Mueller <[email protected]>
3  SPDX-FileCopyrightText: 2006 Mauricio Piacentini <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #ifndef KMAHJONGGBACKGROUND_H
9 #define KMAHJONGGBACKGROUND_H
10 
11 // Qt
12 #include <QBrush>
13 // Std
14 #include <memory>
15 
16 // LibKMahjongg
17 #include "libkmahjongg_export.h"
18 
19 class KMahjonggBackgroundPrivate;
20 
21 /**
22  * @class KMahjonggBackground kmahjonggbackground.h <KMahjonggBackground>
23  *
24  * A background
25  */
26 class LIBKMAHJONGG_EXPORT KMahjonggBackground
27 {
28  public:
31 
32  bool loadDefault();
33  bool load(const QString &file, short width, short height);
34  bool loadGraphics();
35  void sizeChanged(int newW, int newH);
36  QBrush & getBackground();
37  QString path() const;
38  QString authorProperty(const QString &key) const;
39 
40  private:
41  std::unique_ptr<KMahjonggBackgroundPrivate> const d;
42 
43  Q_DISABLE_COPY(KMahjonggBackground)
44 };
45 
46 #endif // KMAHJONGGBACKGROUND_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:09:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.