File indexing completed on 2024-11-17 05:01:08

0001 /*
0002     SPDX-FileCopyrightText: 2014 Weng Xuetian <wengxt@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 #include <QRect>
0011 
0012 class Screen : public QObject
0013 {
0014     Q_OBJECT
0015 public:
0016     Screen(QObject *parent = nullptr);
0017     ~Screen() override;
0018 
0019     Q_INVOKABLE QRect geometryForPoint(int x, int y);
0020     Q_INVOKABLE qreal devicePixelRatioForPoint(int x, int y);
0021 };