libkmahjongg
kmahjonggbackground.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KMAHJONGGBACKGROUND_H_
00021 #define _KMAHJONGGBACKGROUND_H_
00022
00023 #include <QtGui/QBrush>
00024
00025 #include "libkmahjongg_export.h"
00026
00027 class KMahjonggBackgroundPrivate;
00028
00029 class KMAHJONGGLIB_EXPORT KMahjonggBackground
00030 {
00031 public:
00032 KMahjonggBackground();
00033 ~KMahjonggBackground();
00034
00035 bool loadDefault();
00036 bool load(const QString &file, short width, short height);
00037 bool loadGraphics();
00038 void sizeChanged(int newW, int newH);
00039 QBrush & getBackground();
00040 QString path() const;
00041 QString authorProperty(const QString &key) const;
00042
00043 private:
00044 friend class KMahjonggBackgroundPrivate;
00045 KMahjonggBackgroundPrivate *const d;
00046
00047 Q_DISABLE_COPY(KMahjonggBackground)
00048 };
00049
00050 #endif