KWindowSystem
kwindowsystem.cpp
31 // QPoint and QSize all have handy / operators which are useful for scaling, positions and sizes for high DPI support
53 std::unique_ptr<KWindowSystemPluginInterface> xcbPlugin(qobject_cast<KWindowSystemPluginInterface *>(loader.instance()));
71 QPixmap KWindowSystemPrivate::iconFromNetWinInfo(int width, int height, bool scale, int flags, NETWinInfo *info)
393 KWindowInfo KWindowSystem::windowInfo(WId win, NET::Properties properties, NET::Properties2 properties2)
553 QPixmap KWindowSystem::icon(WId win, int width, int height, bool scale, int flags, NETWinInfo *info)
884 void KWindowSystem::requestXdgActivationToken(QWindow *win, uint32_t serial, const QString &app_id)
Platform
Enum describing the windowing system platform used by the QGuiApplication.
Definition: kwindowsystem.h:811
static void demandAttention(WId win, bool set=true)
When application finishes some operation and wants to notify the user about it, it can call demandAtt...
Definition: kwindowsystem.cpp:493
static bool allowedActionsSupported()
Returns true if the WM announces which actions it allows for windows.
Definition: kwindowsystem.cpp:759
static void setOnDesktop(WId win, int desktop)
Moves window win to desktop desktop.
Definition: kwindowsystem.cpp:447
static Q_INVOKABLE void setCurrentXdgActivationToken(const QString &token)
Sets the token that will be used when activateWindow is called next.
Definition: kwindowsystem.cpp:899
static void setMainWindow(QWindow *subwindow, WId mainwindow)
Sets the parent window of subwindow to be mainwindow.
Definition: kwindowsystem.cpp:518
QPoint topLeft() const const
static void setDesktopName(int desktop, const QString &name)
Sets the name of the specified desktop.
Definition: kwindowsystem.cpp:682
CaseInsensitive
QSize size() const const
Q_EMITQ_EMIT
platformName
static bool showingDesktop()
Returns the state of showing the desktop.
Definition: kwindowsystem.cpp:689
singleShot
This class provides information about a given window in the platform specific windowing system.
Definition: kwindowinfo.h:62
static QPoint constrainViewportRelativePosition(const QPoint &pos)
Definition: kwindowsystem.cpp:816
static void setBlockingCompositing(WId window, bool active)
Sets whether the client wishes to block compositing (for better performance)
Definition: kwindowsystem.cpp:782
static int viewportWindowToDesktop(const QRect &r)
Definition: kwindowsystem.cpp:803
static KWindowInfo windowInfo(WId win, NET::Properties properties, NET::Properties2 properties2=NET::Properties2())
Returns information about window win.
Definition: kwindowsystem.cpp:393
static WId groupLeader(WId window)
Returns the leader window for the group the given window is in, if any.
Definition: kwindowsystem.cpp:530
static void setCurrentDesktop(int desktop)
Convenience function to set the current desktop to desktop.
Definition: kwindowsystem.cpp:431
static void setOnAllDesktops(WId win, bool b)
Sets window win to be present on all virtual desktops if is true.
Definition: kwindowsystem.cpp:439
void setAttribute(Qt::WidgetAttribute attribute, bool on)
bool contains(const T &value) const const
static QPixmap icon(WId win, int width=-1, int height=-1, bool scale=false)
Returns an icon for window win.
Definition: kwindowsystem.cpp:538
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
void destroyed(QObject *obj)
void deleteLater()
static void setUserTime(WId win, long time)
Sets user timestamp time on window win.
Definition: kwindowsystem.cpp:702
static void setExtendedStrut(WId win, int left_width, int left_start, int left_end, int right_width, int right_start, int right_end, int top_width, int top_start, int top_end, int bottom_width, int bottom_start, int bottom_end)
Sets the strut of window win to left_width ranging from left_start to left_end on the left edge,...
Definition: kwindowsystem.cpp:710
static void forceActiveWindow(WId win, long time=0)
Sets window win to be the active window.
Definition: kwindowsystem.cpp:485
QString fromLocal8Bit(const char *str, int size)
static int numberOfDesktops()
Returns the number of virtual desktops.
Definition: kwindowsystem.cpp:423
static void unminimizeWindow(WId win)
Unminimizes the window with id win.
Definition: kwindowsystem.cpp:612
void xdgActivationTokenArrived(int serial, const QString &token)
Activation token to pass to the client.
static Q_INVOKABLE quint32 lastInputSerial(QWindow *window)
Offers the seat's current serial.
Definition: kwindowsystem.cpp:909
bool isEmpty() const const
QCoreApplication * instance()
WId winId() const const
static void setState(WId win, NET::States state)
Sets the state of window win to state.
Definition: kwindowsystem.cpp:591
static bool icccmCompliantMappingState()
Definition: kwindowsystem.cpp:752
static void clearState(WId win, NET::States state)
Clears the state of window win from state.
Definition: kwindowsystem.cpp:597
static void setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon)
Sets an icon and a miniIcon on window win.
Definition: kwindowsystem.cpp:578
static QString readNameProperty(WId window, unsigned long atom)
Function that reads and returns the contents of the given text property (WM_NAME, WM_ICON_NAME,...
Definition: kwindowsystem.cpp:766
static void setShowingDesktop(bool showing)
Sets the state of the "showing desktop" mode of the window manager.
Definition: kwindowsystem.cpp:695
QWindow * fromWinId(WId id)
static Q_INVOKABLE void requestXdgActivationToken(QWindow *win, uint32_t serial, const QString &app_id)
Requests an xdg_activation_v1 token for a specific window.
Definition: kwindowsystem.cpp:884
Convenience access to certain properties and features of the window manager.
Definition: kwindowsystem.h:44
QWindow * windowHandle() const const
bool isEmpty() const const
static bool hasWId(WId id)
Test to see if id still managed at present.
Definition: kwindowsystem.cpp:400
static void updateStartupId(QWindow *window)
Updates the platform-specific startup id, if any.
Definition: kwindowsystem.cpp:860
static Platform platform()
Returns the Platform used by the QGuiApplication.
Definition: kwindowsystem.cpp:844
static QList< WId > windows()
Returns the list of all toplevel windows currently managed by the window manager in the order of crea...
Definition: kwindowsystem.cpp:385
static QPoint desktopToViewport(int desktop, bool absolute)
Definition: kwindowsystem.cpp:809
static QRect workArea(int desktop=-1)
Returns the workarea for the specified desktop, or the current work area if no desktop has been speci...
Definition: kwindowsystem.cpp:658
static QList< WId > stackingOrder()
Returns the list of all toplevel windows currently managed by the window manager in the current stack...
Definition: kwindowsystem.cpp:407
static void setNewStartupId(QWindow *window, const QByteArray &startup_id)
Use this function if the application got a request with startup notification from outside (for exampl...
Definition: kstartupinfo.cpp:780
static void setType(WId win, NET::WindowType windowType)
Sets the type of window win to windowType.
Definition: kwindowsystem.cpp:585
static WId transientFor(WId window)
Returns the WM_TRANSIENT_FOR property for the given window, i.e.
Definition: kwindowsystem.cpp:501
static void allowExternalProcessWindowActivation(int pid=-1)
Allows a window from another process to raise and activate itself.
Definition: kwindowsystem.cpp:774
static WId activeWindow()
Returns the currently active window, or 0 if no window is active.
Definition: kwindowsystem.cpp:463
static QString desktopName(int desktop)
Returns the name of the specified desktop.
Definition: kwindowsystem.cpp:674
virtual void connectNotify(const QMetaMethod &signal)
static void setOnActivities(WId win, const QStringList &activities)
Moves window win to activities activities.
Definition: kwindowsystem.cpp:455
static void setStrut(WId win, int left, int right, int top, int bottom)
Convenience function for setExtendedStrut() that automatically makes struts as wide/high as the scree...
Definition: kwindowsystem.cpp:743
static void activateWindow(WId win, long time=0)
Requests that window win is activated.
Definition: kwindowsystem.cpp:471
static int viewportToDesktop(const QPoint &pos)
Definition: kwindowsystem.cpp:797
static bool compositingActive()
Returns true if a compositing manager is running (i.e.
Definition: kwindowsystem.cpp:650
WA_NativeWindow
Q_D(Todo)
static void minimizeWindow(WId win)
Minimizes the window with id win.
Definition: kwindowsystem.cpp:604
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:10:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:10:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.