KDEUI
kwindowinfo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KWINDOWINFO_H
00025 #define KWINDOWINFO_H
00026
00027 #include <kdeui_export.h>
00028 #include <QtGui/QWidgetList>
00029
00030 #if defined(Q_WS_X11) || defined(Q_WS_MAC)
00031
00032 #include <netwm_def.h>
00033
00037 class KDEUI_EXPORT KWindowInfo
00038 {
00039 public:
00043 KWindowInfo( WId window, unsigned long properties, unsigned long properties2 = 0 );
00044 KWindowInfo();
00045 ~KWindowInfo();
00052 bool valid( bool withdrawn_is_valid = false ) const;
00056 WId win() const;
00061 unsigned long state() const;
00066 bool hasState( unsigned long s ) const;
00074 bool isMinimized() const;
00081 NET::MappingState mappingState() const;
00086 NETExtendedStrut extendedStrut() const;
00092 NET::WindowType windowType( int supported_types ) const;
00098 QString visibleName() const;
00108 QString visibleNameWithState() const;
00114 QString name() const;
00121 QString visibleIconName() const;
00132 QString visibleIconNameWithState() const;
00139 QString iconName() const;
00144 bool isOnCurrentDesktop() const;
00149 bool isOnDesktop( int desktop ) const;
00155 bool onAllDesktops() const;
00161 int desktop() const;
00166 QRect geometry() const;
00171 QRect frameGeometry() const;
00177 WId transientFor() const;
00182 WId groupLeader() const;
00183
00189 QByteArray windowClassClass() const;
00190
00196 QByteArray windowClassName() const;
00197
00202 QByteArray windowRole() const;
00203
00208 QByteArray clientMachine() const;
00209
00215 bool actionSupported( NET::Action action ) const;
00216
00217 KWindowInfo( const KWindowInfo& );
00218 KWindowInfo& operator=( const KWindowInfo& );
00219 private:
00220 class Private;
00221 Private * d;
00222 #ifdef Q_WS_MAC
00223
00224 friend class KWindowSystem;
00225 friend class KWindowSystemPrivate;
00226 #endif
00227 };
00228 #endif //Q_WS_X11 || Q_WS_MAC
00229
00230 #endif // multiple inclusion guard
00231