Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Protected Member Functions | List of all members
SkSVGValue Class Reference

#include <SkSVGValue.h>

Inheritance diagram for SkSVGValue:
SkNoncopyable SkSVGWrapperValue< T, ValueType >

Public Types

enum class  Type {
  kColor , kFilter , kLength , kNumber ,
  kObjectBoundingBoxUnits , kPreserveAspectRatio , kStopColor , kString ,
  kTransform , kViewBox
}
 

Public Member Functions

Type type () const
 
template<typename T >
const Tas () const
 
- Public Member Functions inherited from SkNoncopyable
 SkNoncopyable ()=default
 
 SkNoncopyable (SkNoncopyable &&)=default
 
SkNoncopyableoperator= (SkNoncopyable &&)=default
 

Protected Member Functions

 SkSVGValue (Type t)
 

Detailed Description

Definition at line 18 of file SkSVGValue.h.

Member Enumeration Documentation

◆ Type

enum class SkSVGValue::Type
strong
Enumerator
kColor 
kFilter 
kLength 
kNumber 
kObjectBoundingBoxUnits 
kPreserveAspectRatio 
kStopColor 
kString 
kTransform 
kViewBox 

Definition at line 20 of file SkSVGValue.h.

20 {
21 kColor,
22 kFilter,
23 kLength,
24 kNumber,
25 kObjectBoundingBoxUnits,
27 kStopColor,
28 kString,
31 };
@ kColor
hue and saturation of source with luminosity of destination

Constructor & Destructor Documentation

◆ SkSVGValue()

SkSVGValue::SkSVGValue ( Type  t)
inlineprotected

Definition at line 41 of file SkSVGValue.h.

41: fType(t) { }

Member Function Documentation

◆ as()

template<typename T >
const T * SkSVGValue::as ( ) const
inline

Definition at line 36 of file SkSVGValue.h.

36 {
37 return fType == T::TYPE ? static_cast<const T*>(this) : nullptr;
38 }
#define TYPE(t)
#define T
Definition: precompiler.cc:65

◆ type()

Type SkSVGValue::type ( ) const
inline

Definition at line 33 of file SkSVGValue.h.

33{ return fType; }

The documentation for this class was generated from the following file: