00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef WALLPAPERITRANS_H
00020 #define WALLPAPERITRANS_H
00021
00022 #include <QObject>
00023 #include <QPointF>
00024 #include <QSize>
00025 #include <MApplication>
00026 #include <meegocontrolexport.h>
00027
00028 class QSize;
00029 class QPixmap;
00030
00035 class MC_EXPORT WallpaperITrans : public QObject
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 WallpaperITrans ();
00041 WallpaperITrans (const WallpaperITrans &orig);
00042
00043 WallpaperITrans &operator= (const WallpaperITrans &rhs);
00044 int operator* (const int i) const;
00045 WallpaperITrans &operator+= (const QPointF &rsh);
00046
00047 int x () const;
00048 int y () const;
00049 qreal scale () const;
00050 void modScale (int i);
00051
00052 void setOffset (const QPointF &offset);
00053 QPointF offset () const;
00054
00055 void setScale (qreal scale);
00056
00057 void setExpectedSize (const QSize &size);
00058 QSize expectedSize () const;
00059
00060 int expectedWidth () const;
00061 int expectedHeight () const;
00062
00063 M::Orientation orientation () const;
00064 void setOrientation (M::Orientation orientation);
00065
00066 private:
00067 M::Orientation m_Orientation;
00068 qreal m_Scale;
00069 QPointF m_Offset;
00070 QSize m_ExpectedSize;
00071 };
00072 #endif