KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
flutter/Screen.cpp
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: Waqar Ahmed <waqar.ahmed@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
12#include "Screen_p.h"
13
14using namespace KDDockWidgets;
15using namespace KDDockWidgets::flutter;
16
17Screen::~Screen() = default;
18
19QString Screen::name() const
20{
21 return QStringLiteral("dummy-screen");
22}
23
24Size Screen::size() const
25{
26 return geometry().size();
27}
28
29Rect Screen::geometry() const
30{
31 return Rect(0, 0, 1920, 1080);
32}
33
34double Screen::devicePixelRatio() const
35{
36 return 1.0;
37}
38
39Size Screen::availableSize() const
40{
41 return availableGeometry().size();
42}
43
44Rect Screen::availableGeometry() const
45{
46 return geometry();
47}
48
49Size Screen::virtualSize() const
50{
51 return size();
52}
53
54Rect Screen::virtualGeometry() const
55{
56 return availableGeometry();
57}
58
59bool Screen::equals(std::shared_ptr<Core::Screen>) const
60{
61 return true;
62}
Class to abstract QAction, so code still works with QtQuick and Flutter.

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8