You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
728 B
31 lines
728 B
/* |
|
SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <Plasma/Corona> |
|
#include <QPointer> |
|
#include <QWindow> |
|
|
|
class QScreen; |
|
|
|
class DesktopView : public QWindow |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
explicit DesktopView(Plasma::Corona *c, QScreen *targetScreen = nullptr); |
|
~DesktopView() override; |
|
|
|
/*This is different from screen() as is always there, even if the window is |
|
temporarily outside the screen or if is hidden: only plasmashell will ever |
|
change this property, unlike QWindow::screen()*/ |
|
void setScreenToFollow(QScreen *screen); |
|
QScreen *screenToFollow() const; |
|
|
|
private: |
|
QPointer<QScreen> m_screenToFollow; |
|
};
|
|
|