Changeset View
Changeset View
Standalone View
Standalone View
effects/showfps/showfps.h
Show All 40 Lines | 36 | { | |||
---|---|---|---|---|---|
41 | Q_PROPERTY(QRect fpsTextRect READ configuredFpsTextRect) | 41 | Q_PROPERTY(QRect fpsTextRect READ configuredFpsTextRect) | ||
42 | Q_PROPERTY(int textAlign READ configuredTextAlign) | 42 | Q_PROPERTY(int textAlign READ configuredTextAlign) | ||
43 | Q_PROPERTY(QFont textFont READ configuredTextFont) | 43 | Q_PROPERTY(QFont textFont READ configuredTextFont) | ||
44 | Q_PROPERTY(QColor textColor READ configuredTextColor) | 44 | Q_PROPERTY(QColor textColor READ configuredTextColor) | ||
45 | public: | 45 | public: | ||
46 | ShowFpsEffect(); | 46 | ShowFpsEffect(); | ||
47 | void reconfigure(ReconfigureFlags) override; | 47 | void reconfigure(ReconfigureFlags) override; | ||
48 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | 48 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
49 | void paintScreen(int mask, QRegion region, ScreenPaintData& data) override; | 49 | void paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) override; | ||
50 | void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | 50 | void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | ||
51 | void postPaintScreen() override; | 51 | void postPaintScreen() override; | ||
52 | enum { INSIDE_GRAPH, NOWHERE, TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; // fps text position | 52 | enum { INSIDE_GRAPH, NOWHERE, TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; // fps text position | ||
53 | 53 | | |||
54 | // for properties | 54 | // for properties | ||
55 | qreal configuredAlpha() const { | 55 | qreal configuredAlpha() const { | ||
56 | return alpha; | 56 | return alpha; | ||
57 | } | 57 | } | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |