Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwaylandfractionalscale_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 David Edmundson <davidedmundson@kde.org>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWAYLANDFRACTIONALSCALE_P_H
5#define QWAYLANDFRACTIONALSCALE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWaylandClient/private/qwayland-fractional-scale-v1.h>
19#include <QtWaylandClient/qtwaylandclientglobal.h>
20
21#include <QObject>
22
23#include <optional>
24
26
27namespace QtWaylandClient {
28
29class QWaylandFractionalScale : public QObject, public QtWayland::wp_fractional_scale_v1
30{
32public:
33 explicit QWaylandFractionalScale(struct ::wp_fractional_scale_v1 *object);
35
36 std::optional<qreal> preferredScale() const { return mPreferredScale; }
37
40
41protected:
43
44private:
45 std::optional<qreal> mPreferredScale;
46};
47
48}
49
51
52#endif
\inmodule QtCore
Definition qobject.h:103
void wp_fractional_scale_v1_preferred_scale(uint scale) override
QWaylandFractionalScale(struct ::wp_fractional_scale_v1 *object)
Combined button and popup list for selecting options.
GLenum GLenum GLenum GLenum GLenum scale
#define Q_OBJECT
#define Q_SIGNALS
unsigned int uint
Definition qtypes.h:34