RhythmGame 1.4.3
Loading...
Searching...
No Matches
Lr2TimelineStateValue.h
Go to the documentation of this file.
1#pragma once
2
3#include <QMetaType>
4#include <QVariant>
5#include <QtGlobal>
6#include <QtQml/qqmlregistration.h>
7
9 Q_GADGET
10 QML_VALUE_TYPE(lr2TimelineStateValue)
11 Q_PROPERTY(bool valid MEMBER valid)
12 Q_PROPERTY(qreal x MEMBER x)
13 Q_PROPERTY(qreal y MEMBER y)
14 Q_PROPERTY(qreal w MEMBER w)
15 Q_PROPERTY(qreal h MEMBER h)
16 Q_PROPERTY(qreal a MEMBER a)
17 Q_PROPERTY(qreal r MEMBER r)
18 Q_PROPERTY(qreal g MEMBER g)
19 Q_PROPERTY(qreal b MEMBER b)
20 Q_PROPERTY(qreal angle MEMBER angle)
21 Q_PROPERTY(int center MEMBER center)
22 Q_PROPERTY(qreal sortId MEMBER sortId)
23 Q_PROPERTY(int blend MEMBER blend)
24 Q_PROPERTY(int filter MEMBER filter)
25 Q_PROPERTY(int op1 MEMBER op1)
26 Q_PROPERTY(int op2 MEMBER op2)
27 Q_PROPERTY(int op3 MEMBER op3)
28 Q_PROPERTY(int op4 MEMBER op4)
29
30public:
31 bool valid = false;
32 qreal x = 0.0;
33 qreal y = 0.0;
34 qreal w = 0.0;
35 qreal h = 0.0;
36 qreal a = 255.0;
37 qreal r = 255.0;
38 qreal g = 255.0;
39 qreal b = 255.0;
40 qreal angle = 0.0;
41 int center = 0;
42 qreal sortId = 0.0;
43 int blend = 0;
44 int filter = 0;
45 int op1 = 0;
46 int op2 = 0;
47 int op3 = 0;
48 int op4 = 0;
49
50 operator QVariant() const { return QVariant::fromValue(*this); }
51};
52
53Q_DECLARE_METATYPE(Lr2TimelineStateValue)
Definition Lr2TimelineStateValue.h:8
int blend
Definition Lr2TimelineStateValue.h:23
qreal x
Definition Lr2TimelineStateValue.h:12
bool valid
Definition Lr2TimelineStateValue.h:11
qreal y
Definition Lr2TimelineStateValue.h:13
qreal r
Definition Lr2TimelineStateValue.h:17
qreal a
Definition Lr2TimelineStateValue.h:16
int filter
Definition Lr2TimelineStateValue.h:24
qreal w
Definition Lr2TimelineStateValue.h:14
qreal sortId
Definition Lr2TimelineStateValue.h:22
int op2
Definition Lr2TimelineStateValue.h:26
qreal angle
Definition Lr2TimelineStateValue.h:20
int center
Definition Lr2TimelineStateValue.h:21
int op4
Definition Lr2TimelineStateValue.h:28
int op3
Definition Lr2TimelineStateValue.h:27
qreal h
Definition Lr2TimelineStateValue.h:15
int op1
Definition Lr2TimelineStateValue.h:25
qreal g
Definition Lr2TimelineStateValue.h:18
qreal b
Definition Lr2TimelineStateValue.h:19