LibKmahjongg

kmahjonggtileset.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 KMAHJONGGTILESET_H
9#define KMAHJONGGTILESET_H
10
11// Qt
12#include <QtClassHelperMacros> // Q_DECLARE_PRIVATE
13#include <QPixmap>
14#include <QString>
15// Std
16#include <memory>
17
18// LibKMahjongg
19#include <libkmahjongg_export.h>
20
21class KMahjonggTilesetPrivate;
22
23/**
24 * @class KMahjonggTileset kmahjonggtileset.h <KMahjonggTileset>
25 *
26 * A tile set
27 */
28class LIBKMAHJONGG_EXPORT KMahjonggTileset
29{
30public:
33
34 bool loadDefault();
35 bool loadTileset(const QString &tilesetPath);
36 bool loadGraphics();
37 bool reloadTileset(QSize newTilesize);
38 QSize preferredTileSize(QSize boardsize, int horizontalCells, int verticalCells) 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
50 short width() const;
51 short height() const;
52 short levelOffsetX() const;
53 short levelOffsetY() const;
54 short qWidth() const;
55 short qHeight() const;
56 QString path() const;
57
58 QPixmap selectedTile(int num) const;
59 QPixmap unselectedTile(int num) const;
60 QPixmap tileface(int num) const;
61
62private:
63 friend class KMahjonggTilesetPrivate;
64 std::unique_ptr<KMahjonggTilesetPrivate> const d_ptr;
65 Q_DECLARE_PRIVATE(KMahjonggTileset)
66 Q_DISABLE_COPY(KMahjonggTileset)
67};
68
69#endif // KMAHJONGGTILESET_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.