KWin
Loading...
Searching...
No Matches
screen.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10
11#include <qpa/qplatformscreen.h>
12
13#include <QPointer>
14
15namespace KWin
16{
17class Output;
18
19namespace QPA
20{
21class Integration;
22class PlatformCursor;
23
24class Screen : public QObject, public QPlatformScreen
25{
26 Q_OBJECT
27
28public:
29 Screen(Output *output, Integration *integration);
30 ~Screen() override;
31
32 QString name() const override;
33 QRect geometry() const override;
34 int depth() const override;
35 QImage::Format format() const override;
36 QSizeF physicalSize() const override;
37 QPlatformCursor *cursor() const override;
38 QDpi logicalDpi() const override;
39 qreal devicePixelRatio() const override;
40 QList<QPlatformScreen *> virtualSiblings() const override;
41
42private Q_SLOTS:
43 void handleGeometryChanged();
44
45private:
46 QPointer<Output> m_output;
47 std::unique_ptr<PlatformCursor> m_cursor;
48 Integration *m_integration;
49};
50
51class PlaceholderScreen : public QPlatformPlaceholderScreen
52{
53public:
54 QDpi logicalDpi() const override;
55};
56
57}
58}
QDpi logicalDpi() const override
Definition screen.cpp:113
~Screen() override
QSizeF physicalSize() const override
Definition screen.cpp:70
QPlatformCursor * cursor() const override
Definition screen.cpp:79
Screen(Output *output, Integration *integration)
Definition screen.cpp:27
qreal devicePixelRatio() const override
Definition screen.cpp:90
QImage::Format format() const override
Definition screen.cpp:56
QList< QPlatformScreen * > virtualSiblings() const override
Definition screen.cpp:37
QString name() const override
Definition screen.cpp:99
QRect geometry() const override
Definition screen.cpp:61
int depth() const override
Definition screen.cpp:51
QDpi logicalDpi() const override
Definition screen.cpp:84