KWindowSystem

kwindowinfo.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1999 Matthias Ettrich <[email protected]>
4  SPDX-FileCopyrightText: 2007 Lubos Lunak <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-or-later
7 */
8 /*
9  * kwindowinfo.h. Part of the KDE project.
10  */
11 
12 #ifndef KWINDOWINFO_H
13 #define KWINDOWINFO_H
14 
15 #include <kwindowsystem_export.h>
16 #include <QWidgetList> //For WId
17 #include <QExplicitlySharedDataPointer>
18 #include <QStringList>
19 
20 #include <netwm_def.h>
21 
22 class KWindowInfoPrivate;
23 
62 class KWINDOWSYSTEM_EXPORT KWindowInfo
63 {
64 public:
76  KWindowInfo(WId window, NET::Properties properties, NET::Properties2 properties2 = NET::Properties2());
77  ~KWindowInfo();
89  bool valid(bool withdrawn_is_valid = false) const;
93  WId win() const;
109  NET::States state() const;
124  bool hasState(NET::States s) const;
142  bool isMinimized() const;
162  NET::MappingState mappingState() const;
176  NETExtendedStrut extendedStrut() const;
194  NET::WindowType windowType(NET::WindowTypes supported_types) const;
212  QString visibleName() const;
232  QString visibleNameWithState() const;
251  QString name() const;
267  QString visibleIconName() const;
288  QString visibleIconNameWithState() const;
304  QString iconName() const;
318  bool isOnCurrentDesktop() const;
332  bool isOnDesktop(int desktop) const;
349  bool onAllDesktops() const;
367  int desktop() const;
395  QStringList activities() const;
409  QRect geometry() const;
423  QRect frameGeometry() const;
439  WId transientFor() const;
453  WId groupLeader() const;
454 
469  QByteArray windowClassClass() const;
470 
485  QByteArray windowClassName() const;
486 
501  QByteArray windowRole() const;
502 
517  QByteArray clientMachine() const;
518 
534  bool actionSupported(NET::Action action) const;
535 
557  QByteArray desktopFileName() const;
558 
574  int pid() const;
575 
583  QByteArray applicationMenuServiceName() const;
584 
592  QByteArray applicationMenuObjectPath() const;
593 
597  KWindowInfo(const KWindowInfo &);
601  KWindowInfo &operator=(const KWindowInfo &);
602 private:
604 };
605 
606 #endif // multiple inclusion guard
607 
This class provides information about a given window in the platform specific windowing system...
Definition: kwindowinfo.h:62
Partial strut class for NET classes.
Definition: netwm_def.h:132
MappingState
Client window mapping state.
Definition: netwm_def.h:553
WindowType
Window type.
Definition: netwm_def.h:286
Action
Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
Definition: netwm_def.h:574
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 22:43:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.