Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cube.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
51 | Q_PROPERTY(bool invertKeys READ isInvertKeys) | 51 | Q_PROPERTY(bool invertKeys READ isInvertKeys) | ||
52 | Q_PROPERTY(bool invertMouse READ isInvertMouse) | 52 | Q_PROPERTY(bool invertMouse READ isInvertMouse) | ||
53 | Q_PROPERTY(qreal capDeformationFactor READ configuredCapDeformationFactor) | 53 | Q_PROPERTY(qreal capDeformationFactor READ configuredCapDeformationFactor) | ||
54 | Q_PROPERTY(bool useZOrdering READ isUseZOrdering) | 54 | Q_PROPERTY(bool useZOrdering READ isUseZOrdering) | ||
55 | Q_PROPERTY(bool texturedCaps READ isTexturedCaps) | 55 | Q_PROPERTY(bool texturedCaps READ isTexturedCaps) | ||
56 | // TODO: electric borders: not a registered type | 56 | // TODO: electric borders: not a registered type | ||
57 | public: | 57 | public: | ||
58 | CubeEffect(); | 58 | CubeEffect(); | ||
59 | ~CubeEffect(); | 59 | ~CubeEffect() override; | ||
60 | virtual void reconfigure(ReconfigureFlags); | 60 | void reconfigure(ReconfigureFlags) override; | ||
61 | virtual void prePaintScreen(ScreenPrePaintData& data, int time); | 61 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
62 | virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data); | 62 | void paintScreen(int mask, QRegion region, ScreenPaintData& data) override; | ||
63 | virtual void postPaintScreen(); | 63 | void postPaintScreen() override; | ||
64 | virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); | 64 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | ||
65 | virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data); | 65 | void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | ||
66 | virtual bool borderActivated(ElectricBorder border); | 66 | bool borderActivated(ElectricBorder border) override; | ||
67 | virtual void grabbedKeyboardEvent(QKeyEvent* e); | 67 | void grabbedKeyboardEvent(QKeyEvent* e) override; | ||
68 | virtual void windowInputMouseEvent(QEvent* e); | 68 | void windowInputMouseEvent(QEvent* e) override; | ||
69 | virtual bool isActive() const; | 69 | bool isActive() const override; | ||
70 | 70 | | |||
71 | int requestedEffectChainPosition() const override { | 71 | int requestedEffectChainPosition() const override { | ||
72 | return 50; | 72 | return 50; | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | // proxy functions | 75 | // proxy functions | ||
76 | virtual void* proxy(); | 76 | void* proxy() override; | ||
77 | void registerCubeInsideEffect(CubeInsideEffect* effect); | 77 | void registerCubeInsideEffect(CubeInsideEffect* effect); | ||
78 | void unregisterCubeInsideEffect(CubeInsideEffect* effect); | 78 | void unregisterCubeInsideEffect(CubeInsideEffect* effect); | ||
79 | 79 | | |||
80 | static bool supported(); | 80 | static bool supported(); | ||
81 | 81 | | |||
82 | // for properties | 82 | // for properties | ||
83 | qreal configuredCubeOpacity() const { | 83 | qreal configuredCubeOpacity() const { | ||
84 | return cubeOpacity; | 84 | return cubeOpacity; | ||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |