// Copyright (C) 2022 David Edmundson // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QWAYLANDFRACTIONALSCALE_P_H #define QWAYLANDFRACTIONALSCALE_P_H // // W A R N I N G // ------------- // // This file is not part of the Qt API. It exists purely as an // implementation detail. This header file may change from version to // version without notice, or even be removed. // // We mean it. // #include #include #include QT_BEGIN_NAMESPACE namespace QtWaylandClient { class QWaylandFractionalScale : public QObject, public QtWayland::wp_fractional_scale_v1 { Q_OBJECT public: explicit QWaylandFractionalScale(struct ::wp_fractional_scale_v1 *object); ~QWaylandFractionalScale(); qreal preferredScale() const; Q_SIGNALS: void preferredScaleChanged(); protected: void wp_fractional_scale_v1_preferred_scale(uint scale) override; private: qreal mPreferredScale = 1.0; }; } QT_END_NAMESPACE #endif