KWin
bridge.h
Go to the documentation of this file.00001 /******************************************************************** 00002 KWin - the KDE window manager 00003 This file is part of the KDE project. 00004 00005 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org> 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 *********************************************************************/ 00020 00021 #ifndef KWIN_BRIDGE_H 00022 #define KWIN_BRIDGE_H 00023 00024 #include <kdecorationbridge.h> 00025 00026 namespace KWin 00027 { 00028 00029 class Client; 00030 00031 class Bridge : public KDecorationBridgeUnstable 00032 { 00033 public: 00034 Bridge( Client* cl ); 00035 virtual bool isActive() const; 00036 virtual bool isCloseable() const; 00037 virtual bool isMaximizable() const; 00038 virtual MaximizeMode maximizeMode() const; 00039 virtual bool isMinimizable() const; 00040 virtual bool providesContextHelp() const; 00041 virtual int desktop() const; 00042 virtual bool isModal() const; 00043 virtual bool isShadeable() const; 00044 virtual bool isShade() const; 00045 virtual bool isSetShade() const; 00046 virtual bool keepAbove() const; 00047 virtual bool keepBelow() const; 00048 virtual bool isMovable() const; 00049 virtual bool isResizable() const; 00050 virtual NET::WindowType windowType( unsigned long supported_types ) const; 00051 virtual QIcon icon() const; 00052 virtual QString caption() const; 00053 virtual void processMousePressEvent( QMouseEvent* ); 00054 virtual void showWindowMenu( const QPoint & ); 00055 virtual void showWindowMenu( const QRect & ); 00056 virtual void performWindowOperation( WindowOperation ); 00057 virtual void setMask( const QRegion&, int ); 00058 virtual bool isPreview() const; 00059 virtual QRect geometry() const; 00060 virtual QRect iconGeometry() const; 00061 virtual QRegion unobscuredRegion( const QRegion& r ) const; 00062 virtual WId windowId() const; 00063 virtual void closeWindow(); 00064 virtual void maximize( MaximizeMode mode ); 00065 virtual void minimize(); 00066 virtual void showContextHelp(); 00067 virtual void setDesktop( int desktop ); 00068 virtual void titlebarDblClickOperation(); 00069 virtual void titlebarMouseWheelOperation( int delta ); 00070 virtual void setShade( bool set ); 00071 virtual void setKeepAbove( bool ); 00072 virtual void setKeepBelow( bool ); 00073 virtual int currentDesktop() const; 00074 virtual QWidget* initialParentWidget() const; 00075 virtual Qt::WFlags initialWFlags() const; 00076 virtual void grabXServer( bool grab ); 00077 00078 virtual void repaintShadow(); 00079 virtual bool compositingActive() const; 00080 virtual bool shadowsActive() const; 00081 virtual double opacity() const; 00082 private: 00083 Client* c; 00084 }; 00085 00086 } // namespace 00087 00088 #endif