kwinmodule.h
/* This file is part of the KDE libraries
Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
/*
* kwinmodule.h. Part of the KDE project.
*/
#ifndef KWINMODULE_H
#define KWINMODULE_H
#include <qobject.h>
#include <qvaluelist.h>
#include "kdelibs_export.h"
#ifdef Q_OS_UNIX
class KWinModulePrivate;
class KDECORE_EXPORT KWinModule : public QObject
{
Q_OBJECT
public:
enum { INFO_DESKTOP=1,
INFO_WINDOWS=2,
INFO_ALL=32767 };
KWinModule( QObject* parent, int what );
KWinModule( QObject* parent = 0 );
~KWinModule();
const QValueList<WId>& windows() const;
const QValueList<WId>& stackingOrder() const;
bool hasWId(WId id) const;
const QValueList<WId>& systemTrayWindows() const;
int currentDesktop() const;
int numberOfDesktops() const;
QSize numberOfViewports(int desktop) const;
QPoint currentViewport(int desktop) const;
WId activeWindow() const;
QRect workArea( int desktop = - 1 ) const;
QRect workArea( const QValueList<WId> &excludes, int desktop = -1) const;
QString desktopName( int desktop ) const;
void setDesktopName( int desktop, const QString& name );
bool showingDesktop() const;
void doNotManage( const QString& title );
signals:
void currentDesktopChanged( int desktop);
void windowAdded(WId id);
void windowRemoved(WId id);
void activeWindowChanged(WId id);
void desktopNamesChanged();
void numberOfDesktopsChanged(int num);
void systemTrayWindowAdded(WId id);
void systemTrayWindowRemoved(WId id);
void workAreaChanged();
void strutChanged();
void stackingOrderChanged();
void windowChanged(WId id, const unsigned long* properties );
void windowChanged(WId id, unsigned int properties);
void windowChanged(WId id);
void showingDesktopChanged( bool showing );
void desktopGeometryChanged(int desktop);
void currentDesktopViewportChanged(int desktop, const QPoint& viewport);
protected:
virtual void connectNotify( const char* signal );
private:
void init(int);
KWinModulePrivate* d;
friend class KWinModulePrivate;
};
#endif //Q_OS_UNIX
#endif
KWinModule
The class KWinModule provides information about the state of the window manager as required by window...
Definition: kwinmodule.h:52

KDE Home | KDE Accessibility Home | Description of Access Keys