mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
58 lines
845 B
C++
58 lines
845 B
C++
#ifndef ShapeAttributes_h
|
|
#define ShapeAttributes_h
|
|
|
|
#ifdef __cplusplus
|
|
|
|
namespace lottie {
|
|
|
|
enum class FillRule: int {
|
|
None = 0,
|
|
NonZeroWinding = 1,
|
|
EvenOdd = 2
|
|
};
|
|
|
|
enum class LineCap: int {
|
|
None = 0,
|
|
Butt = 1,
|
|
Round = 2,
|
|
Square = 3
|
|
};
|
|
|
|
enum class LineJoin: int {
|
|
None = 0,
|
|
Miter = 1,
|
|
Round = 2,
|
|
Bevel = 3
|
|
};
|
|
|
|
enum class GradientType: int {
|
|
None = 0,
|
|
Linear = 1,
|
|
Radial = 2
|
|
};
|
|
|
|
enum class TrimType: int {
|
|
Simultaneously = 1,
|
|
Individually = 2
|
|
};
|
|
|
|
struct TrimParams {
|
|
float start = 0.0;
|
|
float end = 0.0;
|
|
float offset = 0.0;
|
|
TrimType type = TrimType::Simultaneously;
|
|
|
|
TrimParams(float start_, float end_, float offset_, TrimType type_) :
|
|
start(start_),
|
|
end(end_),
|
|
offset(offset_),
|
|
type(type_) {
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* LottieColor_h */
|