Changeset View
Changeset View
Standalone View
Standalone View
effects/slide/slide.h
Show All 17 Lines | |||||
18 | 18 | | |||
19 | You should have received a copy of the GNU General Public License | 19 | You should have received a copy of the GNU General Public License | ||
20 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
21 | *********************************************************************/ | 21 | *********************************************************************/ | ||
22 | 22 | | |||
23 | #ifndef KWIN_SLIDE_H | 23 | #ifndef KWIN_SLIDE_H | ||
24 | #define KWIN_SLIDE_H | 24 | #define KWIN_SLIDE_H | ||
25 | 25 | | |||
26 | // KDE | 26 | // kwineffects | ||
27 | #include <kwineffects.h> | 27 | #include <kwineffects.h> | ||
28 | 28 | | |||
29 | namespace KWin | 29 | namespace KWin | ||
30 | { | 30 | { | ||
31 | 31 | | |||
32 | class SlideEffect : public Effect | 32 | class SlideEffect : public Effect | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 105 | struct { | |||
107 | bool firstPass; | 107 | bool firstPass; | ||
108 | bool lastPass; | 108 | bool lastPass; | ||
109 | QPoint translation; | 109 | QPoint translation; | ||
110 | 110 | | |||
111 | EffectWindowList fullscreenWindows; | 111 | EffectWindowList fullscreenWindows; | ||
112 | } m_paintCtx; | 112 | } m_paintCtx; | ||
113 | 113 | | |||
114 | struct { | 114 | struct { | ||
115 | QList<EffectWindow*> blur; | 115 | EffectWindowList blur; | ||
116 | QList<EffectWindow*> backgroundContrast; | 116 | EffectWindowList backgroundContrast; | ||
117 | } m_forcedRoles; | 117 | } m_forcedRoles; | ||
118 | 118 | | |||
119 | QList<EffectWindow*> m_elevatedWindows; | 119 | EffectWindowList m_elevatedWindows; | ||
120 | }; | 120 | }; | ||
121 | 121 | | |||
122 | inline int SlideEffect::duration() const | 122 | inline int SlideEffect::duration() const | ||
123 | { | 123 | { | ||
124 | return m_timeLine.duration().count(); | 124 | return m_timeLine.duration().count(); | ||
125 | } | 125 | } | ||
126 | 126 | | |||
127 | inline int SlideEffect::horizontalGap() const | 127 | inline int SlideEffect::horizontalGap() const | ||
Show All 11 Lines | 138 | { | |||
139 | return m_slideDocks; | 139 | return m_slideDocks; | ||
140 | } | 140 | } | ||
141 | 141 | | |||
142 | inline bool SlideEffect::slideBackground() const | 142 | inline bool SlideEffect::slideBackground() const | ||
143 | { | 143 | { | ||
144 | return m_slideBackground; | 144 | return m_slideBackground; | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | } // namespace | 147 | } // namespace KWin | ||
148 | 148 | | |||
149 | #endif | 149 | #endif |