Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
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)
 
 Mutator (const BackdropClipRect &backdrop_rect)
 
 Mutator (const BackdropClipRRect &backdrop_rrect)
 
 Mutator (const BackdropClipRSuperellipse &backdrop_rse)
 
 Mutator (const BackdropClipPath &backdrop_path)
 
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 BackdropClipRectGetBackdropClipRect () const
 
const BackdropClipRRectGetBackdropClipRRect () const
 
const BackdropClipRSuperellipseGetBackdropClipRSuperellipse () const
 
const BackdropClipPathGetBackdropClipPath () const
 
const uint8_t & GetAlpha () const
 
float GetAlphaFloat () const
 
bool operator== (const Mutator &other) const
 
bool IsClipType ()
 

Detailed Description

Definition at line 112 of file embedded_views.h.

Constructor & Destructor Documentation

◆ Mutator() [1/12]

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

Definition at line 114 of file embedded_views.h.

114: data_(other.data_) {}

◆ Mutator() [2/12]

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

Definition at line 116 of file embedded_views.h.

116: data_(rect) {}

◆ Mutator() [3/12]

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

Definition at line 117 of file embedded_views.h.

117: data_(rrect) {}

◆ Mutator() [4/12]

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

Definition at line 118 of file embedded_views.h.

118: data_(rrect) {}

◆ Mutator() [5/12]

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

Definition at line 119 of file embedded_views.h.

119: 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/12]

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

Definition at line 120 of file embedded_views.h.

120: data_(matrix) {}

◆ Mutator() [7/12]

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

Definition at line 121 of file embedded_views.h.

121: data_(alpha) {}

◆ Mutator() [8/12]

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

Definition at line 122 of file embedded_views.h.

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

◆ Mutator() [9/12]

flutter::Mutator::Mutator ( const BackdropClipRect backdrop_rect)
inlineexplicit

Definition at line 126 of file embedded_views.h.

127 : data_(backdrop_rect) {}

◆ Mutator() [10/12]

flutter::Mutator::Mutator ( const BackdropClipRRect backdrop_rrect)
inlineexplicit

Definition at line 128 of file embedded_views.h.

129 : data_(backdrop_rrect) {}

◆ Mutator() [11/12]

flutter::Mutator::Mutator ( const BackdropClipRSuperellipse backdrop_rse)
inlineexplicit

Definition at line 130 of file embedded_views.h.

131 : data_(backdrop_rse) {}

◆ Mutator() [12/12]

flutter::Mutator::Mutator ( const BackdropClipPath backdrop_path)
inlineexplicit

Definition at line 132 of file embedded_views.h.

133 : data_(backdrop_path) {}

Member Function Documentation

◆ GetAlpha()

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

Definition at line 164 of file embedded_views.h.

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

Referenced by GetAlphaFloat().

◆ GetAlphaFloat()

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

Definition at line 165 of file embedded_views.h.

165{ 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().

◆ GetBackdropClipPath()

const BackdropClipPath & flutter::Mutator::GetBackdropClipPath ( ) const
inline

Definition at line 161 of file embedded_views.h.

161 {
162 return std::get<BackdropClipPath>(data_);
163 }

◆ GetBackdropClipRect()

const BackdropClipRect & flutter::Mutator::GetBackdropClipRect ( ) const
inline

Definition at line 152 of file embedded_views.h.

152 {
153 return std::get<BackdropClipRect>(data_);
154 }

◆ GetBackdropClipRRect()

const BackdropClipRRect & flutter::Mutator::GetBackdropClipRRect ( ) const
inline

Definition at line 155 of file embedded_views.h.

155 {
156 return std::get<BackdropClipRRect>(data_);
157 }

◆ GetBackdropClipRSuperellipse()

const BackdropClipRSuperellipse & flutter::Mutator::GetBackdropClipRSuperellipse ( ) const
inline

Definition at line 158 of file embedded_views.h.

158 {
159 return std::get<BackdropClipRSuperellipse>(data_);
160 }

◆ GetFilterMutation()

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

Definition at line 149 of file embedded_views.h.

149 {
150 return std::get<ImageFilterMutation>(data_);
151 }

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

◆ GetMatrix()

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

Definition at line 148 of file embedded_views.h.

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

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

◆ GetPath()

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

Definition at line 147 of file embedded_views.h.

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

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

◆ GetRect()

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

Definition at line 139 of file embedded_views.h.

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

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

◆ GetRRect()

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

Definition at line 140 of file embedded_views.h.

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

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

◆ GetRSE()

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

Definition at line 141 of file embedded_views.h.

141 {
142 return std::get<DlRoundSuperellipse>(data_);
143 }

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

◆ GetRSEApproximation()

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

Definition at line 144 of file embedded_views.h.

144 {
146 }
const DlRoundSuperellipse & GetRSE() const
RoundRect ToApproximateRoundRect() const

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

◆ GetType()

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

Definition at line 135 of file embedded_views.h.

135 {
136 return static_cast<MutatorType>(data_.index());
137 }

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

◆ IsClipType()

bool flutter::Mutator::IsClipType ( )
inline

◆ operator==()

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

Definition at line 167 of file embedded_views.h.

167{ return data_ == other.data_; }

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