aboutsummaryrefslogtreecommitdiff
path: root/src/ParallaxScrollerStatic.h
blob: 04e9547061c19bba2189697a05ae272ad1316938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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