Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
modules
skottie
src
SkottieValue.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef SkottieValue_DEFINED
9
#define SkottieValue_DEFINED
10
11
#include "
include/core/SkColor.h
"
12
#include "
include/core/SkM44.h
"
13
#include "
include/core/SkPath.h
"
14
15
#include <initializer_list>
16
#include <vector>
17
18
namespace
skjson
{
class
Value
; }
19
20
namespace
skottie
{
21
22
using
ScalarValue
=
SkScalar
;
23
using
Vec2Value
=
SkV2
;
24
25
class
VectorValue
:
public
std::vector<float> {
26
public
:
27
VectorValue
() =
default
;
28
29
VectorValue
(std::initializer_list<float> l) : INHERITED(l) {}
30
31
operator
SkV3
()
const
;
32
private
:
33
using
INHERITED = std::vector<float>;
34
};
35
36
class
ColorValue
final :
public
VectorValue
{
37
public
:
38
ColorValue
() =
default
;
39
40
ColorValue
(std::initializer_list<float> l) :
INHERITED
(l) {}
41
42
operator
SkColor
()
const
;
43
operator
SkColor4f
()
const
;
44
45
private
:
46
using
INHERITED =
VectorValue
;
47
};
48
49
class
ShapeValue
final :
public
std::vector<float> {
50
public
:
51
operator
SkPath
()
const
;
52
};
53
54
}
// namespace skottie
55
56
#endif
// SkottieValue_DEFINED
SkColor.h
SkColor
uint32_t SkColor
Definition
SkColor.h:37
SkM44.h
SkPath.h
SkPath
Definition
SkPath.h:59
skottie::ColorValue
Definition
SkottieValue.h:36
skottie::ColorValue::ColorValue
ColorValue(std::initializer_list< float > l)
Definition
SkottieValue.h:40
skottie::ColorValue::ColorValue
ColorValue()=default
skottie::ShapeValue
Definition
SkottieValue.h:49
skottie::VectorValue
Definition
SkottieValue.h:25
skottie::VectorValue::VectorValue
VectorValue()=default
skottie::VectorValue::VectorValue
VectorValue(std::initializer_list< float > l)
Definition
SkottieValue.h:29
SkScalar
float SkScalar
Definition
extension.cpp:12
skjson
Definition
Animator.h:17
skottie
Definition
ExternalLayer.h:16
skottie::ScalarValue
SkScalar ScalarValue
Definition
SkottieValue.h:22
SkColor4f
SkV2
Definition
SkM44.h:19
SkV3
Definition
SkM44.h:56
Value
Definition
LRUCacheTest.cpp:13
Generated on Fri Apr 26 2024 06:16:19 for Flutter Engine by
1.9.8