• Main Page
  • Classes
  • Files
  • File List

/home/bifh8/cs2009q3-i386/work/meegotouch-controlpanelapplets-0.20.61/src/wallpaperapplet/wallpaperitrans.h

00001 /****************************************************************************
00002 **
00003 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
00004 ** All rights reserved.
00005 ** Contact: Nokia Corporation (directui@nokia.com)
00006 **
00007 ** This file is part of meegotouch-controlpanelapplets.
00008 **
00009 ** If you have questions regarding the use of this file, please contact
00010 ** Nokia at directui@nokia.com.
00011 **
00012 ** This library is free software; you can redistribute it and/or
00013 ** modify it under the terms of the GNU Lesser General Public
00014 ** License version 2.1 as published by the Free Software Foundation
00015 ** and appearing in the file LICENSE.LGPL included in the packaging
00016 ** of this file.
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

Generated on Mon Jul 11 2011 12:00:31 for libMeegoControl by  doxygen 1.7.1