8 #ifndef SkSVGValue_DEFINED
9 #define SkSVGValue_DEFINED
15 #include "include/private/base/SkNoncopyable.h"
25 kObjectBoundingBoxUnits,
37 return fType == T::TYPE ?
static_cast<const T*
>(
this) :
nullptr;
46 using INHERITED = SkNoncopyable;
49 template <
typename T, SkSVGValue::Type ValueType>
52 static constexpr
Type TYPE = ValueType;
55 : INHERITED(ValueType)
56 , fWrappedValue(v) { }
58 operator const T&()
const {
return fWrappedValue; }
63 void*
operator new(size_t) =
delete;
64 void*
operator new(size_t,
void*) =
delete;
66 const T& fWrappedValue;
@ kColor
hue and saturation of source with luminosity of destination
Types, consts, functions, and macros for colors.
Definition: SkSVGTypes.h:454
Definition: SkSVGValue.h:18
Type type() const
Definition: SkSVGValue.h:33
SkSVGValue(Type t)
Definition: SkSVGValue.h:41
Type
Definition: SkSVGValue.h:20
@ kObjectBoundingBoxUnits
const T * as() const
Definition: SkSVGValue.h:36
Definition: SkSVGValue.h:50
SkSVGWrapperValue(const T &v)
Definition: SkSVGValue.h:54
const T * operator->() const
Definition: SkSVGValue.h:59
Definition: SkSVGTypes.h:585