Skia
2D Graphics Library
|
Concrete, matrix-backed Transform. More...
#include <SkSGTransform.h>
Public Member Functions | |
const SkRect & | revalidate (InvalidationController *, const SkMatrix &) |
void | invalidate (bool damage=true) |
bool | unique () const |
May return true if the caller is the only owner. More... | |
void | ref () const |
Increment the reference count. More... | |
void | unref () const |
Decrement the reference count. More... | |
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 sk_sp< Transform > | MakeConcat (sk_sp< Transform > a, sk_sp< Transform > b) |
static sk_sp< Transform > | MakeInverse (sk_sp< Transform > t) |
Protected Types | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
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 |
const SkRect & | bounds () const |
bool | hasInval () const |
void | observeInval (const sk_sp< Node > &) |
void | unobserveInval (const sk_sp< Node > &) |
Concrete, matrix-backed Transform.
Supported instantiations: SkMatrix, SkM44.
Sample use:
auto m33 = Matrix<SkMatrix>::Make(SkMatrix::I()); ... m33->setMatrix(SkMatrix::Translate(10, 10));
|
protectedinherited |
|
inlineexplicitprotected |
|
overrideprotectedvirtual |
Implements sksg::Transform.
|
overrideprotectedvirtual |
Implements sksg::Transform.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inherited |
|
inlineoverrideprotectedvirtual |
Implements sksg::Transform.
|
inlinestatic |
|
staticinherited |
|
inlineoverrideprotectedvirtual |
Implements sksg::Node.
|
inlineinherited |
Increment the reference count.
Must be balanced by a call to unref().
|
inherited |
|
inlineinherited |
May return true if the caller is the only owner.
Ensures that all previous owner's actions are complete.
|
inlineinherited |
Decrement the reference count.
If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.
|
inherited |
|
inherited |