• Skip to content
  • Skip to link menu
KDE 4.1 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 #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(); // to make QList and others happy
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; //krazy:exclude=dpointer (implicitly shared)
00222 #ifdef Q_WS_MAC
00223     // KWindowSystem needs access to the d-pointer
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 

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
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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