aboutsummaryrefslogtreecommitdiff
path: root/src/ParallaxScrollerStatic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ParallaxScrollerStatic.h')
-rw-r--r--src/ParallaxScrollerStatic.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ParallaxScrollerStatic.h b/src/ParallaxScrollerStatic.h
new file mode 100644
index 0000000..04e9547
--- /dev/null
+++ b/src/ParallaxScrollerStatic.h
@@ -0,0 +1,26 @@
+#ifndef ParallaxScrollerStatic_h
+#define ParallaxScrollerStatic_h
+
+#include <QStringList>
+#include <QPointF>
+#include <QGraphicsScene>
+
+class ParallaxScrollerItem;
+
+class ParallaxScrollerStatic
+{
+public:
+ ParallaxScrollerStatic(QGraphicsScene* scene);
+ virtual ~ParallaxScrollerStatic();
+
+ void setLayerWidth(int width);
+ void addParallaxScrollItem(const QString& layer, QPointF pos, qreal depth, qreal slowingFactor);
+
+private:
+ QGraphicsScene* m_parent;
+ QVector<ParallaxScrollerItem*> m_layersFirstWave;
+ QVector<ParallaxScrollerItem*> m_layerSecondWave;
+ int m_layerWidth;
+};
+
+#endif // ParallaxScrollerStatic_h