Flutter Engine
The Flutter Engine
|
#include <SkSGTransform.h>
Static Public Member Functions | |
template<typename = std::enable_if<std::is_same<T, SkMatrix>::value || std::is_same<T, SkM44 >::value>> | |
static sk_sp< Matrix > | Make (const T &m) |
Static Public Member Functions inherited from sksg::Transform | |
static sk_sp< Transform > | MakeConcat (sk_sp< Transform > a, sk_sp< Transform > b) |
static sk_sp< Transform > | MakeInverse (sk_sp< Transform > t) |
Protected Member Functions | |
Matrix (const T &m) | |
SkRect | onRevalidate (InvalidationController *, const SkMatrix &) override |
bool | is44 () const override |
SkMatrix | asMatrix () const override |
SkM44 | asM44 () const override |
SkMatrix | asMatrix () const |
SkM44 | asM44 () const |
SkMatrix | asMatrix () const |
SkM44 | asM44 () const |
Protected Member Functions inherited from sksg::Transform | |
Transform () | |
virtual bool | is44 () const =0 |
virtual SkMatrix | asMatrix () const =0 |
virtual SkM44 | asM44 () const =0 |
Protected Member Functions inherited from sksg::Node | |
Node (uint32_t invalTraits) | |
~Node () override | |
const SkRect & | bounds () const |
bool | hasInval () const |
virtual SkRect | onRevalidate (InvalidationController *, const SkMatrix &ctm)=0 |
void | observeInval (const sk_sp< Node > &) |
void | unobserveInval (const sk_sp< Node > &) |
Additional Inherited Members | |
Public Member Functions inherited from sksg::Node | |
const SkRect & | revalidate (InvalidationController *, const SkMatrix &) |
void | invalidate (bool damage=true) |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Types inherited from sksg::Node | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Concrete, matrix-backed Transform.
Supported instantiations: SkMatrix, SkM44.
Sample use:
auto m33 = Matrix<SkMatrix>::Make(SkMatrix::I()); ... m33->setMatrix(SkMatrix::Translate(10, 10));
Definition at line 66 of file SkSGTransform.h.
|
inlineexplicitprotected |
Definition at line 75 of file SkSGTransform.h.
|
protectedvirtual |
Implements sksg::Transform.
Definition at line 135 of file SkSGTransform.cpp.
|
protectedvirtual |
Implements sksg::Transform.
Definition at line 141 of file SkSGTransform.cpp.
|
overrideprotectedvirtual |
Implements sksg::Transform.
|
protectedvirtual |
Implements sksg::Transform.
Definition at line 132 of file SkSGTransform.cpp.
|
protectedvirtual |
Implements sksg::Transform.
Definition at line 138 of file SkSGTransform.cpp.
|
overrideprotectedvirtual |
Implements sksg::Transform.
|
inlineoverrideprotectedvirtual |
|
inlinestatic |
Definition at line 70 of file SkSGTransform.h.
|
inlineoverrideprotectedvirtual |