Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
flutter::DlMatrixColorSourceBase Class Reference

#include <dl_color_source.h>

Inheritance diagram for flutter::DlMatrixColorSourceBase:
flutter::DlColorSource flutter::DlAttribute< DlColorSource, DlColorSourceType > flutter::DlGradientColorSourceBase flutter::DlImageColorSource flutter::DlConicalGradientColorSource flutter::DlLinearGradientColorSource flutter::DlRadialGradientColorSource flutter::DlSweepGradientColorSource

Public Member Functions

const SkMatrixmatrix () const
 
const SkMatrixmatrix_ptr () const
 
- Public Member Functions inherited from flutter::DlColorSource
virtual bool is_opaque () const =0
 
virtual bool isUIThreadSafe () const =0
 If the underlying platform data held by this object is held in a way that it can be stored and potentially released from the UI thread, this method returns true. More...
 
virtual bool isGradient () const
 If the underlying platform data represents a gradient. More...
 
virtual const DlColorColorSourceasColor () const
 
virtual const DlImageColorSourceasImage () const
 
virtual const DlLinearGradientColorSourceasLinearGradient () const
 
virtual const DlRadialGradientColorSourceasRadialGradient () const
 
virtual const DlConicalGradientColorSourceasConicalGradient () const
 
virtual const DlSweepGradientColorSourceasSweepGradient () const
 
virtual const DlRuntimeEffectColorSourceasRuntimeEffect () const
 
- Public Member Functions inherited from flutter::DlAttribute< DlColorSource, DlColorSourceType >
virtual DlColorSourceType type () const=0
 
virtual size_t size () const=0
 
virtual std::shared_ptr< DlColorSourceshared () const=0
 
bool operator== (DlColorSource const &other) const
 
bool operator!= (DlColorSource const &other) const
 
virtual ~DlAttribute ()=default
 

Protected Member Functions

 DlMatrixColorSourceBase (const SkMatrix *matrix)
 
- Protected Member Functions inherited from flutter::DlColorSource
 DlColorSource ()=default
 
- Protected Member Functions inherited from flutter::DlAttribute< DlColorSource, DlColorSourceType >
virtual bool equals_ (DlColorSource const &other) const=0
 

Additional Inherited Members

- Static Public Member Functions inherited from flutter::DlColorSource
static std::shared_ptr< DlLinearGradientColorSourceMakeLinear (const SkPoint start_point, const SkPoint end_point, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
 
static std::shared_ptr< DlRadialGradientColorSourceMakeRadial (SkPoint center, SkScalar radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
 
static std::shared_ptr< DlConicalGradientColorSourceMakeConical (SkPoint start_center, SkScalar start_radius, SkPoint end_center, SkScalar end_radius, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
 
static std::shared_ptr< DlSweepGradientColorSourceMakeSweep (SkPoint center, SkScalar start, SkScalar end, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
 
static std::shared_ptr< DlRuntimeEffectColorSourceMakeRuntimeEffect (sk_sp< DlRuntimeEffect > runtime_effect, std::vector< std::shared_ptr< DlColorSource > > samplers, std::shared_ptr< std::vector< uint8_t > > uniform_data)
 

Detailed Description

Definition at line 211 of file dl_color_source.h.

Constructor & Destructor Documentation

◆ DlMatrixColorSourceBase()

flutter::DlMatrixColorSourceBase::DlMatrixColorSourceBase ( const SkMatrix matrix)
inlineexplicitprotected

Definition at line 219 of file dl_color_source.h.

220 : matrix_(matrix ? *matrix : SkMatrix::I()) {}
static const SkMatrix & I()
Definition: SkMatrix.cpp:1544
const SkMatrix & matrix() const

Member Function Documentation

◆ matrix()

const SkMatrix & flutter::DlMatrixColorSourceBase::matrix ( ) const
inline

Definition at line 213 of file dl_color_source.h.

213{ return matrix_; }

◆ matrix_ptr()

const SkMatrix * flutter::DlMatrixColorSourceBase::matrix_ptr ( ) const
inline

Definition at line 214 of file dl_color_source.h.

214 {
215 return matrix_.isIdentity() ? nullptr : &matrix_;
216 }
bool isIdentity() const
Definition: SkMatrix.h:223

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