/* * SPDX-FileCopyrightText: 2012, 2013 Daniel Vrátil * * SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "types.h" #include #include class XRandRConfig; namespace KScreen { class Screen; class Config; } class XRandRScreen : public QObject { Q_OBJECT public: explicit XRandRScreen(XRandRConfig *config = nullptr); ~XRandRScreen() override; KScreen::ScreenPtr toKScreenScreen() const; void updateKScreenScreen(KScreen::ScreenPtr &screen) const; void update(); void update(const QSize &size); QSize currentSize(); private: int m_id; QSize m_minSize; QSize m_maxSize; QSize m_currentSize; };