Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qfontvariableaxis.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
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 QFONTVARIABLEAXIS_H
5#define QFONTVARIABLEAXIS_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtGui/qfont.h>
9
10#include <QtCore/qshareddata.h>
11
12QT_BEGIN_NAMESPACE
13
14class QFontVariableAxisPrivate;
15QT_DECLARE_QESDP_SPECIALIZATION_DTOR(QFontVariableAxisPrivate)
16
18{
19 Q_GADGET_EXPORT(Q_GUI_EXPORT)
21
27public:
29 QFontVariableAxis(QFontVariableAxis &&other) noexcept = default;
34 {
36 }
37
39
40 Q_GUI_EXPORT QFont::Tag tag() const;
41 Q_GUI_EXPORT void setTag(QFont::Tag tag);
42
43 Q_GUI_EXPORT QString name() const;
44 Q_GUI_EXPORT void setName(const QString &name);
45
46 Q_GUI_EXPORT qreal minimumValue() const;
47 Q_GUI_EXPORT void setMinimumValue(qreal minimumValue);
48
50 Q_GUI_EXPORT void setMaximumValue(qreal maximumValue);
51
53 Q_GUI_EXPORT void setDefaultValue(qreal defaultValue);
54
55private:
56 QByteArray tagString() const { return tag().toString(); }
57 void detach();
58
59#ifndef QT_NO_DEBUG_STREAM
61#endif
62
63 QExplicitlySharedDataPointer<QFontVariableAxisPrivate> d_ptr;
64};
65
66Q_DECLARE_SHARED(QFontVariableAxis)
67
68QT_END_NAMESPACE
69
70#endif // QFONTVARIABLEAXIS_H
\reentrant \inmodule QtGui
QFontVariableAxis(QFontVariableAxis &&other) noexcept=default
Q_GUI_EXPORT void setDefaultValue(qreal defaultValue)
Sets the default value of this QFontVariableAxis to defaultValue.
Q_GUI_EXPORT void setMinimumValue(qreal minimumValue)
Sets the minimum value of this QFontVariableAxis to minimumValue.
Q_GUI_EXPORT void setMaximumValue(qreal maximumValue)
Sets the maximum value of this QFontVariableAxis to maximumValue.
Q_GUI_EXPORT void setTag(QFont::Tag tag)
Sets the tag of QFontVariableAxis to tag.
Q_GUI_EXPORT void setName(const QString &name)
Sets the name of this QFontVariableAxis to name.
Q_GUI_EXPORT ~QFontVariableAxis()
Destroys this QFontVariableAxis object.
QDebug operator<<(QDebug debug, const QFontVariableAxis &axis)