Qt 6.x
The Qt SDK
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
24
25namespace QtWaylandClient {
26
27class QWaylandFractionalScale : public QObject, public QtWayland::wp_fractional_scale_v1
28{
30public:
31 explicit QWaylandFractionalScale(struct ::wp_fractional_scale_v1 *object);
33
34 qreal preferredScale() const;
35
38
39protected:
41
42private:
43 qreal mPreferredScale = 1.0;
44};
45
46}
47
49
50#endif
\inmodule QtCore
Definition qobject.h:90
void wp_fractional_scale_v1_preferred_scale(uint scale) override
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:29
double qreal
Definition qtypes.h:92