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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • windowmanagement
kwindowinfo.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)
3  Copyright (C) 2007 Lubos Lunak (l.lunak@kde.org)
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 /*
21  * kwindowinfo.h. Part of the KDE project.
22  */
23 
24 #ifndef KWINDOWINFO_H
25 #define KWINDOWINFO_H
26 
27 #include <kdeui_export.h>
28 #include <QtGui/QWidgetList> //For WId
29 
30 #include <netwm_def.h>
31 
35 class KDEUI_EXPORT KWindowInfo
36 {
37 public:
41  KWindowInfo( WId window, unsigned long properties, unsigned long properties2 = 0 );
42  KWindowInfo(); // to make QList and others happy
43  ~KWindowInfo();
50  bool valid( bool withdrawn_is_valid = false ) const;
54  WId win() const;
59  unsigned long state() const;
64  bool hasState( unsigned long s ) const;
72  bool isMinimized() const;
79  NET::MappingState mappingState() const;
84  NETExtendedStrut extendedStrut() const;
90  NET::WindowType windowType( int supported_types ) const;
96  QString visibleName() const;
106  QString visibleNameWithState() const;
112  QString name() const;
119  QString visibleIconName() const;
130  QString visibleIconNameWithState() const;
137  QString iconName() const;
142  bool isOnCurrentDesktop() const;
147  bool isOnDesktop( int desktop ) const;
153  bool onAllDesktops() const;
159  int desktop() const;
164  QRect geometry() const;
169  QRect frameGeometry() const;
175  WId transientFor() const;
180  WId groupLeader() const;
181 
187  QByteArray windowClassClass() const;
188 
194  QByteArray windowClassName() const;
195 
200  QByteArray windowRole() const;
201 
206  QByteArray clientMachine() const;
207 
213  bool actionSupported( NET::Action action ) const;
214 
215  KWindowInfo( const KWindowInfo& );
216  KWindowInfo& operator=( const KWindowInfo& );
217 private:
218  class Private;
219  Private * d; //krazy:exclude=dpointer (implicitly shared)
220 #ifdef Q_WS_MAC
221  // KWindowSystem needs access to the d-pointer
222  friend class KWindowSystem;
223  friend class KWindowSystemPrivate;
224 #endif
225 };
226 
227 #endif // multiple inclusion guard
228 
QByteArray
KWindowSystem
Convenience access to certain properties and features of the window manager.
Definition: kwindowsystem.h:55
KStandardAction::name
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
KWindowInfo
Information about a window.
Definition: kwindowinfo.h:35
NETExtendedStrut
Partial strut class for NET classes.
Definition: netwm_def.h:152
NET::MappingState
MappingState
Client window mapping state.
Definition: netwm_def.h:533
QRect
NET::WindowType
WindowType
Window type.
Definition: netwm_def.h:305
QString
KStandardGuiItem::properties
KGuiItem properties()
Returns the 'Properties' gui item.
Definition: kstandardguiitem.cpp:299
netwm_def.h
kdeui_export.h
NET::Action
Action
Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
Definition: netwm_def.h:553
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal