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 #include <netwm_def.h>
00031
00035 class KDEUI_EXPORT KWindowInfo
00036 {
00037 public:
00041 KWindowInfo( WId window, unsigned long properties, unsigned long properties2 = 0 );
00042 KWindowInfo();
00043 ~KWindowInfo();
00050 bool valid( bool withdrawn_is_valid = false ) const;
00054 WId win() const;
00059 unsigned long state() const;
00064 bool hasState( unsigned long s ) const;
00072 bool isMinimized() const;
00079 NET::MappingState mappingState() const;
00084 NETExtendedStrut extendedStrut() const;
00090 NET::WindowType windowType( int supported_types ) const;
00096 QString visibleName() const;
00106 QString visibleNameWithState() const;
00112 QString name() const;
00119 QString visibleIconName() const;
00130 QString visibleIconNameWithState() const;
00137 QString iconName() const;
00142 bool isOnCurrentDesktop() const;
00147 bool isOnDesktop( int desktop ) const;
00153 bool onAllDesktops() const;
00159 int desktop() const;
00164 QRect geometry() const;
00169 QRect frameGeometry() const;
00175 WId transientFor() const;
00180 WId groupLeader() const;
00181
00187 QByteArray windowClassClass() const;
00188
00194 QByteArray windowClassName() const;
00195
00200 QByteArray windowRole() const;
00201
00206 QByteArray clientMachine() const;
00207
00213 bool actionSupported( NET::Action action ) const;
00214
00215 KWindowInfo( const KWindowInfo& );
00216 KWindowInfo& operator=( const KWindowInfo& );
00217 private:
00218 class Private;
00219 Private * d;
00220 #ifdef Q_WS_MAC
00221
00222 friend class KWindowSystem;
00223 friend class KWindowSystemPrivate;
00224 #endif
00225 };
00226
00227 #endif // multiple inclusion guard
00228