LibKmahjongg

kmahjonggbackground.h
1/*
2 SPDX-FileCopyrightText: 1997 Mathias Mueller <in5y158@public.uni-hamburg.de>
3 SPDX-FileCopyrightText: 2006 Mauricio Piacentini <mauricio@tabuleiro.com>
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 <QtClassHelperMacros> // Q_DECLARE_PRIVATE
13#include <QBrush>
14// Std
15#include <memory>
16
17// LibKMahjongg
18#include "libkmahjongg_export.h"
19
20class KMahjonggBackgroundPrivate;
21
22/**
23 * @class KMahjonggBackground kmahjonggbackground.h <KMahjonggBackground>
24 *
25 * A background
26 */
27class LIBKMAHJONGG_EXPORT KMahjonggBackground
28{
29public:
32
33 bool loadDefault();
34 bool load(const QString &file, short width, short height);
35 bool loadGraphics();
36 void sizeChanged(int newW, int newH);
37 QBrush &getBackground();
38 QString path() const;
39
40 QString name() const;
41 QString description() const;
42 QString license() const;
43 QString copyrightText() const;
44 QString version() const;
45 QString website() const;
46 QString bugReportUrl() const;
47 QString authorName() const;
48 QString authorEmailAddress() const;
49 bool isPlain() const;
50
51private:
52 std::unique_ptr<KMahjonggBackgroundPrivate> const d_ptr;
53 Q_DECLARE_PRIVATE(KMahjonggBackground)
54 Q_DISABLE_COPY(KMahjonggBackground)
55};
56
57#endif // KMAHJONGGBACKGROUND_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.