QmlMaterial
0.1.0
Loading...
Searching...
No Matches
include
qml_material
enum.hpp
1
#pragma once
2
#include <QObject>
3
#include <QQmlEngine>
4
#include "qml_material/export.hpp"
5
6
namespace
qml_material
7
{
8
13
class
QML_MATERIAL_API
Enum
:
public
QObject {
14
Q_OBJECT
15
QML_ELEMENT
16
public
:
17
using
QObject::QObject;
18
19
enum class
ThemeMode
20
{
21
Light = 0,
22
Dark
23
};
24
Q_ENUM(ThemeMode)
25
26
enum class
IconLabelStyle
27
{
28
IconAndText = 0,
29
IconOnly,
30
TextOnly
31
};
32
Q_ENUM(IconLabelStyle)
33
34
enum class
ButtonSize {
35
XS = 0,
36
S,
37
M,
38
L,
39
XL
40
};
41
Q_ENUM(ButtonSize)
42
43
enum class
ButtonWidthMode
44
{
45
DefaultWidth = 0,
46
NarrowWidth,
47
WideWidth
48
};
49
Q_ENUM(ButtonWidthMode)
50
51
enum class
ButtonType
52
{
53
BtElevated = 0,
54
BtFilled,
55
BtFilledTonal,
56
BtOutlined,
57
BtText
58
};
59
Q_ENUM(ButtonType)
60
61
enum class
IconButtonType
62
{
63
IBtFilled = 0,
64
IBtFilledTonal,
65
IBtOutlined,
66
IBtStandard
67
};
68
Q_ENUM(IconButtonType)
69
70
enum class
FABType
71
{
72
FABSmall = 0,
73
FABNormal,
74
FABLarge
75
};
76
Q_ENUM(FABType)
77
78
enum class
FABColor
79
{
80
FABColorPrimary = 0,
81
FABColorSurfaec,
82
FABColorSecondary,
83
FABColorTertiary
84
};
85
Q_ENUM(FABColor)
86
87
enum class
CardType
88
{
89
CardElevated = 0,
90
CardFilled,
91
CardOutlined
92
};
93
Q_ENUM(CardType)
94
95
enum class
TextFieldType
96
{
97
TextFieldFilled = 0,
98
TextFieldOutlined
99
};
100
Q_ENUM(TextFieldType)
101
102
enum class
ListItemHeightMode
103
{
104
ListItemOneLine = 0,
105
ListItemTwoLine,
106
ListItemThreeLine
107
};
108
Q_ENUM(ListItemHeightMode)
109
110
enum class
TabType
111
{
112
PrimaryTab,
113
SecondaryTab
114
};
115
Q_ENUM(TabType)
116
117
enum class
AppBarType
118
{
119
AppBarCenterAligned,
120
AppBarSmall,
121
AppBarMedium,
122
AppBarLarge
123
};
124
Q_ENUM(AppBarType)
125
126
enum class
ToastFlag
127
{
128
TFCloseable = 1,
129
TFSave = 1 << 1,
130
};
131
Q_ENUM(ToastFlag)
132
Q_DECLARE_FLAGS(ToastFlags, ToastFlag)
133
134
enum class
WindowClassType
135
{
136
WindowClassCompact,
137
WindowClassMedium,
138
WindowClassExpanded,
139
WindowClassLarge,
140
WindowClassExtraLarge,
141
};
142
Q_ENUM(WindowClassType)
143
144
enum class
PaletteType
145
{
146
PaletteNeutral = 0,
147
PaletteRainbow,
148
PaletteTonalSpot,
149
PaletteMonochrome,
150
PaletteVibrant,
151
PaletteContent,
152
PaletteFidelity,
153
PaletteExpressive,
154
PaletteFruitSalad,
155
};
156
Q_ENUM(PaletteType)
157
158
enum class
ItemPosition
159
{
160
PosFirst = 0,
161
PosMiddle,
162
PosLast,
163
PosSingle
164
};
165
Q_ENUM(ItemPosition)
166
};
167
Q_DECLARE_OPERATORS_FOR_FLAGS(Enum::ToastFlags);
168
}
// namespace qml_material
qml_material::Enum
Enum.
Definition
enum.hpp:13
qml_material::Enum::WindowClassType
WindowClassType
Definition
enum.hpp:135
qml_material::Enum::TextFieldType
TextFieldType
Definition
enum.hpp:96
qml_material::Enum::IconLabelStyle
IconLabelStyle
Definition
enum.hpp:27
qml_material::Enum::ButtonType
ButtonType
Definition
enum.hpp:52
qml_material::Enum::TabType
TabType
Definition
enum.hpp:111
qml_material::Enum::CardType
CardType
Definition
enum.hpp:88
qml_material::Enum::ListItemHeightMode
ListItemHeightMode
Definition
enum.hpp:103
qml_material::Enum::ItemPosition
ItemPosition
Definition
enum.hpp:159
qml_material::Enum::ThemeMode
ThemeMode
Definition
enum.hpp:20
qml_material::Enum::FABColor
FABColor
Definition
enum.hpp:79
qml_material::Enum::ToastFlag
ToastFlag
Definition
enum.hpp:127
qml_material::Enum::FABType
FABType
Definition
enum.hpp:71
qml_material::Enum::IconButtonType
IconButtonType
Definition
enum.hpp:62
qml_material::Enum::AppBarType
AppBarType
Definition
enum.hpp:118
Generated by
1.12.0