Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
measurementtokens.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// SPDX-License-Identifier: MPL-2.0
3
4#pragma once
5
6#include <QtCore/qobject.h>
7#include <QtQml/qqmlregistration.h>
8
9namespace Fluid {
10
21{
22 Q_GADGET
23 QML_ANONYMOUS
24
25 Q_PROPERTY(qreal space0 READ space0 CONSTANT FINAL)
26 Q_PROPERTY(qreal space25 READ space25 CONSTANT FINAL)
27 Q_PROPERTY(qreal space50 READ space50 CONSTANT FINAL)
28 Q_PROPERTY(qreal space75 READ space75 CONSTANT FINAL)
29 Q_PROPERTY(qreal space100 READ space100 CONSTANT FINAL)
30 Q_PROPERTY(qreal space125 READ space125 CONSTANT FINAL)
31 Q_PROPERTY(qreal space150 READ space150 CONSTANT FINAL)
32 Q_PROPERTY(qreal space175 READ space175 CONSTANT FINAL)
33 Q_PROPERTY(qreal space200 READ space200 CONSTANT FINAL)
34 Q_PROPERTY(qreal space250 READ space250 CONSTANT FINAL)
35 Q_PROPERTY(qreal space300 READ space300 CONSTANT FINAL)
36 Q_PROPERTY(qreal space400 READ space400 CONSTANT FINAL)
37 Q_PROPERTY(qreal space450 READ space450 CONSTANT FINAL)
38 Q_PROPERTY(qreal space500 READ space500 CONSTANT FINAL)
39 Q_PROPERTY(qreal space600 READ space600 CONSTANT FINAL)
40 Q_PROPERTY(qreal space700 READ space700 CONSTANT FINAL)
41 Q_PROPERTY(qreal space800 READ space800 CONSTANT FINAL)
42 Q_PROPERTY(qreal space900 READ space900 CONSTANT FINAL)
43
44public:
45 constexpr qreal space0() const
46 {
47 return space100() * 0.0;
48 }
49 constexpr qreal space25() const
50 {
51 return space100() * 0.25;
52 }
53 constexpr qreal space50() const
54 {
55 return space100() * 0.5;
56 }
57 constexpr qreal space75() const
58 {
59 return space100() * 0.75;
60 }
61 constexpr qreal space100() const
62 {
63 return 8.0;
64 }
65 constexpr qreal space125() const
66 {
67 return space100() * 1.25;
68 }
69 constexpr qreal space150() const
70 {
71 return space100() * 1.5;
72 }
73 constexpr qreal space175() const
74 {
75 return space100() * 1.75;
76 }
77 constexpr qreal space200() const
78 {
79 return space100() * 2.0;
80 }
81 constexpr qreal space250() const
82 {
83 return space100() * 2.5;
84 }
85 constexpr qreal space300() const
86 {
87 return space100() * 3.0;
88 }
89 constexpr qreal space400() const
90 {
91 return space100() * 4.0;
92 }
93 constexpr qreal space450() const
94 {
95 return space100() * 4.5;
96 }
97 constexpr qreal space500() const
98 {
99 return space100() * 5.0;
100 }
101 constexpr qreal space600() const
102 {
103 return space100() * 6.0;
104 }
105 constexpr qreal space700() const
106 {
107 return space100() * 7.0;
108 }
109 constexpr qreal space800() const
110 {
111 return space100() * 8.0;
112 }
113 constexpr qreal space900() const
114 {
115 return space100() * 9.0;
116 }
117};
118
119} // namespace Fluid
Material Design 3 system measurement tokens.
constexpr qreal space200() const
constexpr qreal space400() const
constexpr qreal space150() const
constexpr qreal space250() const
QML_ANONYMOUSqreal space0
constexpr qreal space450() const
constexpr qreal space125() const
constexpr qreal space800() const
constexpr qreal space25() const
constexpr qreal space900() const
constexpr qreal space600() const
constexpr qreal space75() const
constexpr qreal space50() const
constexpr qreal space700() const
constexpr qreal space500() const
constexpr qreal space100() const
constexpr qreal space300() const
constexpr qreal space175() const