Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
flutter::DlBlurMaskFilter Class Referencefinal

#include <dl_mask_filter.h>

Inheritance diagram for flutter::DlBlurMaskFilter:
flutter::DlMaskFilter flutter::DlAttribute< DlMaskFilter, DlMaskFilterType >

Public Member Functions

 DlBlurMaskFilter (DlBlurStyle style, SkScalar sigma, bool respect_ctm=true)
 
 DlBlurMaskFilter (const DlBlurMaskFilter &filter)
 
 DlBlurMaskFilter (const DlBlurMaskFilter *filter)
 
DlMaskFilterType type () const override
 
size_t size () const override
 
std::shared_ptr< DlMaskFiltershared () const override
 
const DlBlurMaskFilterasBlur () const override
 
DlBlurStyle style () const
 
SkScalar sigma () const
 
bool respectCTM () const
 
virtual const DlBlurMaskFilterasBlur () const
 
- Public Member Functions inherited from flutter::DlAttribute< DlMaskFilter, DlMaskFilterType >
virtual DlMaskFilterType type () const=0
 
virtual size_t size () const=0
 
virtual std::shared_ptr< DlMaskFiltershared () const=0
 
bool operator== (DlMaskFilter const &other) const
 
bool operator!= (DlMaskFilter const &other) const
 
virtual ~DlAttribute ()=default
 

Static Public Member Functions

static std::shared_ptr< DlMaskFilterMake (DlBlurStyle style, SkScalar sigma, bool respect_ctm=true)
 

Protected Member Functions

bool equals_ (DlMaskFilter const &other) const override
 
virtual bool equals_ (DlMaskFilter const &other) const=0
 

Detailed Description

Definition at line 43 of file dl_mask_filter.h.

Constructor & Destructor Documentation

◆ DlBlurMaskFilter() [1/3]

flutter::DlBlurMaskFilter::DlBlurMaskFilter ( DlBlurStyle  style,
SkScalar  sigma,
bool  respect_ctm = true 
)
inline

Definition at line 45 of file dl_mask_filter.h.

46 : style_(style), sigma_(sigma), respect_ctm_(respect_ctm) {}
DlBlurStyle style() const
SkScalar sigma() const

◆ DlBlurMaskFilter() [2/3]

flutter::DlBlurMaskFilter::DlBlurMaskFilter ( const DlBlurMaskFilter filter)
inline

Definition at line 47 of file dl_mask_filter.h.

48 : DlBlurMaskFilter(filter.style_, filter.sigma_, filter.respect_ctm_) {}
DlBlurMaskFilter(DlBlurStyle style, SkScalar sigma, bool respect_ctm=true)

◆ DlBlurMaskFilter() [3/3]

flutter::DlBlurMaskFilter::DlBlurMaskFilter ( const DlBlurMaskFilter filter)
inlineexplicit

Definition at line 49 of file dl_mask_filter.h.

50 : DlBlurMaskFilter(filter->style_, filter->sigma_, filter->respect_ctm_) {
51 }

Member Function Documentation

◆ asBlur()

const DlBlurMaskFilter * flutter::DlBlurMaskFilter::asBlur ( ) const
inlineoverridevirtual

Reimplemented from flutter::DlMaskFilter.

Definition at line 69 of file dl_mask_filter.h.

69{ return this; }

◆ equals_()

bool flutter::DlBlurMaskFilter::equals_ ( DlMaskFilter const &  other) const
inlineoverrideprotectedvirtual

Implements flutter::DlAttribute< DlMaskFilter, DlMaskFilterType >.

Definition at line 76 of file dl_mask_filter.h.

76 {
77 FML_DCHECK(other.type() == DlMaskFilterType::kBlur);
78 auto that = static_cast<DlBlurMaskFilter const*>(&other);
79 return style_ == that->style_ && sigma_ == that->sigma_ &&
80 respect_ctm_ == that->respect_ctm_;
81 }
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ Make()

static std::shared_ptr< DlMaskFilter > flutter::DlBlurMaskFilter::Make ( DlBlurStyle  style,
SkScalar  sigma,
bool  respect_ctm = true 
)
inlinestatic

Definition at line 53 of file dl_mask_filter.h.

55 {
56 if (std::isfinite(sigma) && sigma > 0) {
57 return std::make_shared<DlBlurMaskFilter>(style, sigma, respect_ctm);
58 }
59 return nullptr;
60 }
SINT bool isfinite(const Vec< N, T > &v)
Definition: SkVx.h:1003

◆ respectCTM()

bool flutter::DlBlurMaskFilter::respectCTM ( ) const
inline

Definition at line 73 of file dl_mask_filter.h.

73{ return respect_ctm_; }

◆ shared()

std::shared_ptr< DlMaskFilter > flutter::DlBlurMaskFilter::shared ( ) const
inlineoverridevirtual

Implements flutter::DlAttribute< DlMaskFilter, DlMaskFilterType >.

Definition at line 65 of file dl_mask_filter.h.

65 {
66 return std::make_shared<DlBlurMaskFilter>(this);
67 }

◆ sigma()

SkScalar flutter::DlBlurMaskFilter::sigma ( ) const
inline

Definition at line 72 of file dl_mask_filter.h.

72{ return sigma_; }

◆ size()

size_t flutter::DlBlurMaskFilter::size ( ) const
inlineoverridevirtual

Implements flutter::DlAttribute< DlMaskFilter, DlMaskFilterType >.

Definition at line 63 of file dl_mask_filter.h.

63{ return sizeof(*this); }

◆ style()

DlBlurStyle flutter::DlBlurMaskFilter::style ( ) const
inline

Definition at line 71 of file dl_mask_filter.h.

71{ return style_; }

◆ type()

DlMaskFilterType flutter::DlBlurMaskFilter::type ( ) const
inlineoverridevirtual

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