Changeset View
Changeset View
Standalone View
Standalone View
effects/touchpoints/touchpoints.h
Show All 36 Lines | 32 | { | |||
---|---|---|---|---|---|
37 | Q_PROPERTY(int ringCount READ ringCount) | 37 | Q_PROPERTY(int ringCount READ ringCount) | ||
38 | public: | 38 | public: | ||
39 | TouchPointsEffect(); | 39 | TouchPointsEffect(); | ||
40 | ~TouchPointsEffect() override; | 40 | ~TouchPointsEffect() override; | ||
41 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | 41 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
42 | void paintScreen(int mask, QRegion region, ScreenPaintData& data) override; | 42 | void paintScreen(int mask, QRegion region, ScreenPaintData& data) override; | ||
43 | void postPaintScreen() override; | 43 | void postPaintScreen() override; | ||
44 | bool isActive() const override; | 44 | bool isActive() const override; | ||
45 | bool touchDown(quint32 id, const QPointF &pos, quint32 time) override; | 45 | bool touchDown(qint32 id, const QPointF &pos, quint32 time) override; | ||
46 | bool touchMotion(quint32 id, const QPointF &pos, quint32 time) override; | 46 | bool touchMotion(qint32 id, const QPointF &pos, quint32 time) override; | ||
47 | bool touchUp(quint32 id, quint32 time) override; | 47 | bool touchUp(qint32 id, quint32 time) override; | ||
48 | 48 | | |||
49 | // for properties | 49 | // for properties | ||
50 | qreal lineWidth() const { | 50 | qreal lineWidth() const { | ||
51 | return m_lineWidth; | 51 | return m_lineWidth; | ||
52 | } | 52 | } | ||
53 | int ringLife() const { | 53 | int ringLife() const { | ||
54 | return m_ringLife; | 54 | return m_ringLife; | ||
55 | } | 55 | } | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |