KWindowSystem
kwindowinfo.h
73 KWindowInfo(WId window, NET::Properties properties, NET::Properties2 properties2 = NET::Properties2());
QString iconName() const
Returns the name of the window that should be shown in taskbar.
Definition kwindowinfo.cpp:342
NETExtendedStrut extendedStrut() const
Returns the window extended (partial) strut.
Definition kwindowinfo.cpp:219
int pid() const
Returns the process ID of the window's application if present.
Definition kwindowinfo.cpp:589
bool valid(bool withdrawn_is_valid=false) const
Returns false if this window info is not valid.
Definition kwindowinfo.cpp:138
bool actionSupported(NET::Action action) const
Returns true if the given action is currently supported for the window.
Definition kwindowinfo.cpp:530
QByteArray gtkApplicationId() const
Returns the GTK application id of the window if present.
Definition kwindowinfo.cpp:556
QByteArray windowClassName() const
Returns the name component of the WM_CLASS X11 property for the window.
Definition kwindowinfo.cpp:486
QByteArray windowRole() const
Returns the WM_WINDOW_ROLE X11 property for the window.
Definition kwindowinfo.cpp:497
QString visibleIconNameWithState() const
Returns a visible icon name with state.
Definition kwindowinfo.cpp:331
bool isOnCurrentDesktop() const
Returns true if the window is on the currently active virtual desktop.
Definition kwindowinfo.cpp:359
QString visibleNameWithState() const
Returns a visible name with state.
Definition kwindowinfo.cpp:289
bool isOnDesktop(int desktop) const
Returns true if the window is on the given virtual desktop.
Definition kwindowinfo.cpp:365
bool hasState(NET::States s) const
Returns true if the window has the given state flag set.
Definition kwindowinfo.cpp:175
WId transientFor() const
Returns the window identifier of the main window this window belongs to.
Definition kwindowinfo.cpp:453
QByteArray applicationMenuServiceName() const
Returns service name of a window's application menu if present.
Definition kwindowinfo.cpp:567
QString visibleIconName() const
Returns the visible name of the window that should be shown in a taskbar.
Definition kwindowinfo.cpp:311
WId groupLeader() const
Returns the leader window for the group the window is in, if any.
Definition kwindowinfo.cpp:464
bool onAllDesktops() const
Returns true if the window is on all desktops.
Definition kwindowinfo.cpp:382
QRect geometry() const
Returns the position and size of the window contents.
Definition kwindowinfo.cpp:431
NET::WindowType windowType(NET::WindowTypes supported_types) const
Returns the window type of this window.
Definition kwindowinfo.cpp:256
QByteArray desktopFileName() const
Returns the desktop file name of the window's application if present.
Definition kwindowinfo.cpp:545
KWindowInfo(WId window, NET::Properties properties, NET::Properties2 properties2=NET::Properties2())
Reads all the info about the given window.
Definition kwindowinfo.cpp:55
QByteArray windowClassClass() const
Returns the class component of the WM_CLASS X11 property for the window.
Definition kwindowinfo.cpp:475
NET::MappingState mappingState() const
Returns the mapping state of the window.
Definition kwindowinfo.cpp:208
QRect frameGeometry() const
Returns the frame geometry of the window, i.e.
Definition kwindowinfo.cpp:442
QStringList activities() const
Returns the list of activity UUIDs this window belongs to.
Definition kwindowinfo.cpp:417
QByteArray clientMachine() const
Returns the WM_CLIENT_MACHINE property for the window.
Definition kwindowinfo.cpp:508
QString name() const
Returns the name of the window, as specified by the application.
Definition kwindowinfo.cpp:300
QByteArray applicationMenuObjectPath() const
Returns object path of a window's application menu if present.
Definition kwindowinfo.cpp:578
QFlags< WindowTypeMask > WindowTypes
Stores a combination of WindowTypeMask values.
Definition netwm_def.h:478
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:08:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:08:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.