Changeset View
Changeset View
Standalone View
Standalone View
effects/slide/slide.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | |||||
77 | private: | 77 | private: | ||
78 | QPoint desktopCoords(int id) const; | 78 | QPoint desktopCoords(int id) const; | ||
79 | QRect desktopGeometry(int id) const; | 79 | QRect desktopGeometry(int id) const; | ||
80 | int workspaceWidth() const; | 80 | int workspaceWidth() const; | ||
81 | int workspaceHeight() const; | 81 | int workspaceHeight() const; | ||
82 | 82 | | |||
83 | bool isTranslated(const EffectWindow *w) const; | 83 | bool isTranslated(const EffectWindow *w) const; | ||
84 | bool isPainted(const EffectWindow *w) const; | 84 | bool isPainted(const EffectWindow *w) const; | ||
85 | | ||||
86 | bool shouldForceBlur(const EffectWindow *w) const; | | |||
87 | bool shouldForceBackgroundContrast(const EffectWindow *w) const; | | |||
88 | bool shouldElevate(const EffectWindow *w) const; | 85 | bool shouldElevate(const EffectWindow *w) const; | ||
89 | 86 | | |||
90 | void start(int old, int current, EffectWindow *movingWindow = nullptr); | 87 | void start(int old, int current, EffectWindow *movingWindow = nullptr); | ||
91 | void stop(); | 88 | void stop(); | ||
92 | 89 | | |||
93 | private: | 90 | private: | ||
94 | int m_hGap; | 91 | int m_hGap; | ||
95 | int m_vGap; | 92 | int m_vGap; | ||
Show All 10 Lines | 102 | struct { | |||
106 | int desktop; | 103 | int desktop; | ||
107 | bool firstPass; | 104 | bool firstPass; | ||
108 | bool lastPass; | 105 | bool lastPass; | ||
109 | QPoint translation; | 106 | QPoint translation; | ||
110 | 107 | | |||
111 | EffectWindowList fullscreenWindows; | 108 | EffectWindowList fullscreenWindows; | ||
112 | } m_paintCtx; | 109 | } m_paintCtx; | ||
113 | 110 | | |||
114 | struct { | | |||
115 | EffectWindowList blur; | | |||
116 | EffectWindowList backgroundContrast; | | |||
117 | } m_forcedRoles; | | |||
118 | | ||||
119 | EffectWindowList m_elevatedWindows; | 111 | EffectWindowList m_elevatedWindows; | ||
120 | }; | 112 | }; | ||
121 | 113 | | |||
122 | inline int SlideEffect::duration() const | 114 | inline int SlideEffect::duration() const | ||
123 | { | 115 | { | ||
124 | return m_timeLine.duration().count(); | 116 | return m_timeLine.duration().count(); | ||
125 | } | 117 | } | ||
126 | 118 | | |||
Show All 23 Lines |