1
/********************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 2008 Martin Gräßlin <ubuntu@martin-graesslin.com>
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
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/>.
19
*********************************************************************/
21
#ifndef KWIN_COVERSWITCH_H
22
#define KWIN_COVERSWITCH_H
31
#include <kwineffects.h>
32
#include <kwinglutils.h>
37
class CoverSwitchEffect
45
virtual void reconfigure(ReconfigureFlags);
46
virtual void prePaintScreen(ScreenPrePaintData& data, int time);
47
virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
48
virtual void postPaintScreen();
49
virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
50
virtual void windowInputMouseEvent(Window w, QEvent* e);
52
static bool supported();
55
void slotWindowClosed(EffectWindow *c);
56
void slotTabBoxAdded(int mode);
57
void slotTabBoxClosed();
58
void slotTabBoxUpdated();
61
void paintScene(EffectWindow* frontWindow, const EffectWindowList& leftWindows, const EffectWindowList& rightWindows,
62
bool reflectedWindows = false);
63
void paintWindowCover(EffectWindow* w, bool reflectedWindow, WindowPaintData& data);
64
void paintFrontWindow(EffectWindow* frontWindow, int width, int leftWindows, int rightWindows, bool reflectedWindow);
65
void paintWindows(const EffectWindowList& windows, bool left, bool reflectedWindows, EffectWindow* additionalWindow = NULL);
77
float mirrorColor[2][4];
79
int animationDuration;
92
QQueue<Direction> scheduled_directions;
93
EffectWindow* selected_window;
95
QList< EffectWindow* > leftWindows;
96
QList< EffectWindow* > rightWindows;
97
EffectWindowList currentWindowList;
98
EffectWindowList referrencedWindows;
100
EffectFrame* captionFrame;
104
bool dynamicThumbnails;
105
int thumbnailWindows;
108
bool secondaryTabBox;
110
GLShader *m_reflectionShader;