• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kwindowinfo.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)
00003     Copyright (C) 2007 Lubos Lunak (l.lunak@kde.org)
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 /*
00021  * kwindowinfo.h. Part of the KDE project.
00022  */
00023 
00024 #ifndef KWINDOWINFO_H
00025 #define KWINDOWINFO_H
00026 
00027 #include <kdeui_export.h>
00028 #include <QtGui/QWidgetList> //For WId
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(); // to make QList and others happy
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; //krazy:exclude=dpointer (implicitly shared)
00220 #ifdef Q_WS_MAC
00221     // KWindowSystem needs access to the d-pointer
00222     friend class KWindowSystem;
00223     friend class KWindowSystemPrivate;
00224 #endif
00225 };
00226 
00227 #endif // multiple inclusion guard
00228 

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal