not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kwin / bridge.h
blob5332d6aa5d6835acb755d868d70c2363f86541bf
1 /********************************************************************
2 KWin - the KDE window manager
3 This file is part of the KDE project.
5 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
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_BRIDGE_H
22 #define KWIN_BRIDGE_H
24 #include <kdecorationbridge.h>
26 namespace KWin
29 class Client;
31 class Bridge : public KDecorationBridgeUnstable
33 public:
34 Bridge( Client* cl );
35 virtual bool isActive() const;
36 virtual bool isCloseable() const;
37 virtual bool isMaximizable() const;
38 virtual MaximizeMode maximizeMode() const;
39 virtual bool isMinimizable() const;
40 virtual bool providesContextHelp() const;
41 virtual int desktop() const;
42 virtual bool isModal() const;
43 virtual bool isShadeable() const;
44 virtual bool isShade() const;
45 virtual bool isSetShade() const;
46 virtual bool keepAbove() const;
47 virtual bool keepBelow() const;
48 virtual bool isMovable() const;
49 virtual bool isResizable() const;
50 virtual NET::WindowType windowType( unsigned long supported_types ) const;
51 virtual QIcon icon() const;
52 virtual QString caption() const;
53 virtual void processMousePressEvent( QMouseEvent* );
54 virtual void showWindowMenu( const QPoint & );
55 virtual void showWindowMenu( const QRect & );
56 virtual void performWindowOperation( WindowOperation );
57 virtual void setMask( const QRegion&, int );
58 virtual bool isPreview() const;
59 virtual QRect geometry() const;
60 virtual QRect iconGeometry() const;
61 virtual QRegion unobscuredRegion( const QRegion& r ) const;
62 virtual WId windowId() const;
63 virtual void closeWindow();
64 virtual void maximize( MaximizeMode mode );
65 virtual void minimize();
66 virtual void showContextHelp();
67 virtual void setDesktop( int desktop );
68 virtual void titlebarDblClickOperation();
69 virtual void titlebarMouseWheelOperation( int delta );
70 virtual void setShade( bool set );
71 virtual void setKeepAbove( bool );
72 virtual void setKeepBelow( bool );
73 virtual int currentDesktop() const;
74 virtual QWidget* initialParentWidget() const;
75 virtual Qt::WFlags initialWFlags() const;
76 virtual void grabXServer( bool grab );
78 virtual void repaintShadow();
79 virtual bool compositingActive() const;
80 virtual bool shadowsActive() const;
81 virtual double opacity() const;
82 private:
83 Client* c;
86 } // namespace
88 #endif