Changeset View
Changeset View
Standalone View
Standalone View
effects/kscreen/kscreen.h
Show All 15 Lines | |||||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_KSCREEN_H | 20 | #ifndef KWIN_KSCREEN_H | ||
21 | #define KWIN_KSCREEN_H | 21 | #define KWIN_KSCREEN_H | ||
22 | 22 | | |||
23 | #include <kwineffects.h> | 23 | #include <kwineffects.h> | ||
24 | // Qt | | |||
25 | #include <QTimeLine> | | |||
26 | 24 | | |||
27 | namespace KWin | 25 | namespace KWin | ||
28 | { | 26 | { | ||
29 | 27 | | |||
30 | class KscreenEffect : public Effect | 28 | class KscreenEffect : public Effect | ||
31 | { | 29 | { | ||
32 | Q_OBJECT | 30 | Q_OBJECT | ||
33 | 31 | | |||
Show All 19 Lines | |||||
53 | private: | 51 | private: | ||
54 | void switchState(); | 52 | void switchState(); | ||
55 | enum FadeOutState { | 53 | enum FadeOutState { | ||
56 | StateNormal, | 54 | StateNormal, | ||
57 | StateFadingOut, | 55 | StateFadingOut, | ||
58 | StateFadedOut, | 56 | StateFadedOut, | ||
59 | StateFadingIn | 57 | StateFadingIn | ||
60 | }; | 58 | }; | ||
61 | QTimeLine m_timeLine; | 59 | TimeLine m_timeLine; | ||
62 | FadeOutState m_state; | 60 | FadeOutState m_state; | ||
63 | xcb_atom_t m_atom; | 61 | xcb_atom_t m_atom; | ||
64 | }; | 62 | }; | ||
65 | 63 | | |||
66 | 64 | | |||
67 | } // namespace KWin | 65 | } // namespace KWin | ||
68 | #endif // KWIN_KSCREEN_H | 66 | #endif // KWIN_KSCREEN_H |