00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GLUONGRAPHICS_VIEWPORT_H
00021 #define GLUONGRAPHICS_VIEWPORT_H
00022
00023 #include <QtCore/QObject>
00024
00025 namespace GluonGraphics
00026 {
00033 class Viewport : public QObject
00034 {
00035 Q_OBJECT
00036 public:
00037 explicit Viewport( QObject* parent = 0 );
00038 virtual ~Viewport();
00039
00040 float left();
00041 float width();
00042 float bottom();
00043 float height();
00044 float aspectRatio();
00045
00046 public Q_SLOTS:
00047 void setLeft( float left );
00048 void setWidth( float width );
00049 void setBottom( float bottom );
00050 void setHeight( float height );
00051
00052 void setSize( float left, float width, float bottom, float height );
00053
00054 void update();
00055
00056 private:
00057 class ViewportPrivate;
00058 ViewportPrivate* const d;
00059 };
00060
00061 }
00062
00063 #endif // GLUONGRAPHICS_VIEWPORT_H