Flutter Engine
 
Loading...
Searching...
No Matches
flutter::Mutator Class Reference

#include <embedded_views.h>

Public Member Functions

 Mutator (const Mutator &other)
 
 Mutator (const DlRect &rect)
 
 Mutator (const DlRoundRect &rrect)
 
 Mutator (const DlRoundSuperellipse &rrect)
 
 Mutator (const DlPath &path)
 
 Mutator (const DlMatrix &matrix)
 
 Mutator (const uint8_t &alpha)
 
 Mutator (const std::shared_ptr< DlImageFilter > &filter, const DlRect &filter_rect)
 
MutatorType GetType () const
 
const DlRectGetRect () const
 
const DlRoundRectGetRRect () const
 
const DlRoundSuperellipseGetRSE () const
 
const DlRoundRect GetRSEApproximation () const
 
const DlPathGetPath () const
 
const DlMatrixGetMatrix () const
 
const ImageFilterMutationGetFilterMutation () const
 
const uint8_t & GetAlpha () const
 
float GetAlphaFloat () const
 
bool operator== (const Mutator &other) const
 
bool IsClipType ()
 

Detailed Description

Definition at line 70 of file embedded_views.h.

Constructor & Destructor Documentation

◆ Mutator() [1/8]

flutter::Mutator::Mutator ( const Mutator other)
inline

Definition at line 72 of file embedded_views.h.

72: data_(other.data_) {}

◆ Mutator() [2/8]

flutter::Mutator::Mutator ( const DlRect rect)
inlineexplicit

Definition at line 74 of file embedded_views.h.

74: data_(rect) {}

◆ Mutator() [3/8]

flutter::Mutator::Mutator ( const DlRoundRect rrect)
inlineexplicit

Definition at line 75 of file embedded_views.h.

75: data_(rrect) {}

◆ Mutator() [4/8]

flutter::Mutator::Mutator ( const DlRoundSuperellipse rrect)
inlineexplicit

Definition at line 76 of file embedded_views.h.

76: data_(rrect) {}

◆ Mutator() [5/8]

flutter::Mutator::Mutator ( const DlPath path)
inlineexplicit

Definition at line 77 of file embedded_views.h.

77: data_(path) {}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switch_defs.h:52

◆ Mutator() [6/8]

flutter::Mutator::Mutator ( const DlMatrix matrix)
inlineexplicit

Definition at line 78 of file embedded_views.h.

78: data_(matrix) {}

◆ Mutator() [7/8]

flutter::Mutator::Mutator ( const uint8_t &  alpha)
inlineexplicit

Definition at line 79 of file embedded_views.h.

79: data_(alpha) {}

◆ Mutator() [8/8]

flutter::Mutator::Mutator ( const std::shared_ptr< DlImageFilter > &  filter,
const DlRect filter_rect 
)
inlineexplicit

Definition at line 80 of file embedded_views.h.

82 : data_(ImageFilterMutation(filter, filter_rect)) {}

Member Function Documentation

◆ GetAlpha()

const uint8_t & flutter::Mutator::GetAlpha ( ) const
inline

Definition at line 101 of file embedded_views.h.

101{ return std::get<uint8_t>(data_); }

Referenced by GetAlphaFloat().

◆ GetAlphaFloat()

float flutter::Mutator::GetAlphaFloat ( ) const
inline

Definition at line 102 of file embedded_views.h.

102{ return DlColor::toOpacity(GetAlpha()); }
const uint8_t & GetAlpha() const
static constexpr DlScalar toOpacity(uint8_t alpha)
Definition dl_color.h:65

References GetAlpha(), and flutter::DlColor::toOpacity().

◆ GetFilterMutation()

const ImageFilterMutation & flutter::Mutator::GetFilterMutation ( ) const
inline

Definition at line 98 of file embedded_views.h.

98 {
99 return std::get<ImageFilterMutation>(data_);
100 }

Referenced by flutter::testing::TEST().

◆ GetMatrix()

const DlMatrix & flutter::Mutator::GetMatrix ( ) const
inline

Definition at line 97 of file embedded_views.h.

97{ return std::get<DlMatrix>(data_); }

Referenced by flutter::testing::TEST().

◆ GetPath()

const DlPath & flutter::Mutator::GetPath ( ) const
inline

Definition at line 96 of file embedded_views.h.

96{ return std::get<DlPath>(data_); }

Referenced by flutter::testing::TEST().

◆ GetRect()

const DlRect & flutter::Mutator::GetRect ( ) const
inline

Definition at line 88 of file embedded_views.h.

88{ return std::get<DlRect>(data_); }

Referenced by flutter::testing::TEST().

◆ GetRRect()

const DlRoundRect & flutter::Mutator::GetRRect ( ) const
inline

Definition at line 89 of file embedded_views.h.

89{ return std::get<DlRoundRect>(data_); }

Referenced by flutter::testing::TEST().

◆ GetRSE()

const DlRoundSuperellipse & flutter::Mutator::GetRSE ( ) const
inline

Definition at line 90 of file embedded_views.h.

90 {
91 return std::get<DlRoundSuperellipse>(data_);
92 }

Referenced by GetRSEApproximation(), and flutter::testing::TEST().

◆ GetRSEApproximation()

const DlRoundRect flutter::Mutator::GetRSEApproximation ( ) const
inline

Definition at line 93 of file embedded_views.h.

93 {
95 }
const DlRoundSuperellipse & GetRSE() const
RoundRect ToApproximateRoundRect() const

References GetRSE(), and impeller::RoundSuperellipse::ToApproximateRoundRect().

◆ GetType()

MutatorType flutter::Mutator::GetType ( ) const
inline

Definition at line 84 of file embedded_views.h.

84 {
85 return static_cast<MutatorType>(data_.index());
86 }

Referenced by IsClipType(), and flutter::testing::TEST().

◆ IsClipType()

◆ operator==()

bool flutter::Mutator::operator== ( const Mutator other) const
inline

Definition at line 104 of file embedded_views.h.

104{ return data_ == other.data_; }

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