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
ButtonType
35
{
36
BtElevated = 0,
37
BtFilled,
38
BtFilledTonal,
39
BtOutlined,
40
BtText
41
};
42
Q_ENUM(ButtonType)
43
44
enum class
IconButtonType
45
{
46
IBtFilled = 0,
47
IBtFilledTonal,
48
IBtOutlined,
49
IBtStandard
50
};
51
Q_ENUM(IconButtonType)
52
53
enum class
FABType
54
{
55
FABSmall = 0,
56
FABNormal,
57
FABLarge
58
};
59
Q_ENUM(FABType)
60
61
enum class
FABColor
62
{
63
FABColorPrimary = 0,
64
FABColorSurfaec,
65
FABColorSecondary,
66
FABColorTertiary
67
};
68
Q_ENUM(FABColor)
69
70
enum class
CardType
71
{
72
CardElevated = 0,
73
CardFilled,
74
CardOutlined
75
};
76
Q_ENUM(CardType)
77
78
enum class
TextFieldType
79
{
80
TextFieldFilled = 0,
81
TextFieldOutlined
82
};
83
Q_ENUM(TextFieldType)
84
85
enum class
ListItemHeightMode
86
{
87
ListItemOneLine = 0,
88
ListItemTwoLine,
89
ListItemThreeLine
90
};
91
Q_ENUM(ListItemHeightMode)
92
93
enum class
TabType
94
{
95
PrimaryTab,
96
SecondaryTab
97
};
98
Q_ENUM(TabType)
99
100
enum class
AppBarType
101
{
102
AppBarCenterAligned,
103
AppBarSmall,
104
AppBarMedium,
105
AppBarLarge
106
};
107
Q_ENUM(AppBarType)
108
109
enum class
ToastFlag
110
{
111
TFCloseable = 1,
112
TFSave = 1 << 1,
113
};
114
Q_ENUM(ToastFlag)
115
Q_DECLARE_FLAGS(ToastFlags, ToastFlag)
116
117
enum class
WindowClassType
118
{
119
WindowClassCompact,
120
WindowClassMedium,
121
WindowClassExpanded,
122
WindowClassLarge,
123
WindowClassExtraLarge,
124
};
125
Q_ENUM(WindowClassType)
126
127
enum class
PaletteType
128
{
129
PaletteNeutral = 0,
130
PaletteRainbow,
131
PaletteTonalSpot,
132
PaletteMonochrome,
133
PaletteVibrant,
134
PaletteContent,
135
PaletteFidelity,
136
PaletteExpressive,
137
PaletteFruitSalad,
138
};
139
Q_ENUM(PaletteType)
140
};
141
Q_DECLARE_OPERATORS_FOR_FLAGS(Enum::ToastFlags);
142
}
// namespace qml_material
qml_material::Enum
Enum.
Definition
enum.hpp:13
qml_material::Enum::WindowClassType
WindowClassType
Definition
enum.hpp:118
qml_material::Enum::TextFieldType
TextFieldType
Definition
enum.hpp:79
qml_material::Enum::IconLabelStyle
IconLabelStyle
Definition
enum.hpp:27
qml_material::Enum::ButtonType
ButtonType
Definition
enum.hpp:35
qml_material::Enum::TabType
TabType
Definition
enum.hpp:94
qml_material::Enum::CardType
CardType
Definition
enum.hpp:71
qml_material::Enum::ListItemHeightMode
ListItemHeightMode
Definition
enum.hpp:86
qml_material::Enum::ThemeMode
ThemeMode
Definition
enum.hpp:20
qml_material::Enum::FABColor
FABColor
Definition
enum.hpp:62
qml_material::Enum::ToastFlag
ToastFlag
Definition
enum.hpp:110
qml_material::Enum::FABType
FABType
Definition
enum.hpp:54
qml_material::Enum::IconButtonType
IconButtonType
Definition
enum.hpp:45
qml_material::Enum::AppBarType
AppBarType
Definition
enum.hpp:101
Generated by
1.12.0