KWindowSystem

kwindowinfo_p_x11.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef KWINDOWINFO_P_X11_H
8 #define KWINDOWINFO_P_X11_H
9 #include "kwindowinfo_p.h"
10 #include <QScopedPointer>
11 
12 class NETWinInfo;
13 
14 class KWindowInfoPrivateX11 : public KWindowInfoPrivate,
15  public KWindowInfoPrivateDesktopFileNameExtension,
16  public KWindowInfoPrivatePidExtension,
17  public KWindowInfoPrivateAppMenuExtension
18 {
19 public:
20  KWindowInfoPrivateX11(WId window, NET::Properties properties, NET::Properties2 properties2);
21  ~KWindowInfoPrivateX11() override;
22 
23  bool valid(bool withdrawn_is_valid) const override;
24  NET::States state() const override;
25  bool isMinimized() const override;
26  NET::MappingState mappingState() const override;
27  NETExtendedStrut extendedStrut() const override;
28  NET::WindowType windowType(NET::WindowTypes supported_types) const override;
29  QString visibleName() const override;
30  QString visibleNameWithState() const override;
31  QString name() const override;
32  QString visibleIconName() const override;
33  QString visibleIconNameWithState() const override;
34  QString iconName() const override;
35  bool onAllDesktops() const override;
36  bool isOnDesktop(int desktop) const override;
37  int desktop() const override;
38  QStringList activities() const override;
39  QRect geometry() const override;
40  QRect frameGeometry() const override;
41  WId transientFor() const override;
42  WId groupLeader() const override;
43  QByteArray windowClassClass() const override;
44  QByteArray windowClassName() const override;
45  QByteArray windowRole() const override;
46  QByteArray clientMachine() const override;
47  bool actionSupported(NET::Action action) const override;
48 
49  QByteArray desktopFileName() const override;
50  QByteArray applicationMenuObjectPath() const override;
51  QByteArray applicationMenuServiceName() const override;
52 
53  int pid() const override;
54 
55 private:
57  QString m_name;
58  QString m_iconic_name;
59  QRect m_geometry;
60  QRect m_frame_geometry;
61  int m_pid = -1; // real PID from XResources. Valid if > 0
62  bool m_valid;
63 };
64 
65 #endif
QString name(const QVariant &location)
Partial strut class for NET classes.
Definition: netwm_def.h:180
MappingState
Client window mapping state.
Definition: netwm_def.h:624
WindowType
Window type.
Definition: netwm_def.h:357
Action
Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
Definition: netwm_def.h:645
Common API for application window properties/protocols.
Definition: netwm.h:944
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 15 2021 22:41:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.