Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::MutatorsStack Class Reference

#include <embedded_views.h>

Public Member Functions

 MutatorsStack ()=default
 
void PushClipRect (const DlRect &rect)
 
void PushClipRRect (const DlRoundRect &rrect)
 
void PushClipRSE (const DlRoundSuperellipse &rrect)
 
void PushClipPath (const DlPath &path)
 
void PushTransform (const DlMatrix &matrix)
 
void PushOpacity (const uint8_t &alpha)
 
void PushBackdropFilter (const std::shared_ptr< DlImageFilter > &filter, const DlRect &filter_rect)
 
void PushPlatformViewClipRect (const DlRect &rect)
 
void PushPlatformViewClipRRect (const DlRoundRect &rrect)
 
void PushPlatformViewClipRSuperellipse (const DlRoundSuperellipse &rse)
 
void PushPlatformViewClipPath (const DlPath &path)
 
void Pop ()
 
void PopTo (size_t stack_count)
 
const std::vector< std::shared_ptr< Mutator > >::const_reverse_iterator Top () const
 
const std::vector< std::shared_ptr< Mutator > >::const_reverse_iterator Bottom () const
 
const std::vector< std::shared_ptr< Mutator > >::const_iterator Begin () const
 
const std::vector< std::shared_ptr< Mutator > >::const_iterator End () const
 
bool is_empty () const
 
size_t stack_count () const
 
bool operator== (const MutatorsStack &other) const
 
bool operator== (const std::vector< Mutator > &other) const
 
bool operator!= (const MutatorsStack &other) const
 
bool operator!= (const std::vector< Mutator > &other) const
 

Detailed Description

Definition at line 211 of file embedded_views.h.

Constructor & Destructor Documentation

◆ MutatorsStack()

flutter::MutatorsStack::MutatorsStack ( )
default

Member Function Documentation

◆ Begin()

const std::vector< std::shared_ptr< Mutator > >::const_iterator flutter::MutatorsStack::Begin ( ) const

◆ Bottom()

◆ End()

const std::vector< std::shared_ptr< Mutator > >::const_iterator flutter::MutatorsStack::End ( ) const

◆ is_empty()

bool flutter::MutatorsStack::is_empty ( ) const
inline

Definition at line 252 of file embedded_views.h.

252{ return vector_.empty(); }

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

◆ operator!=() [1/2]

bool flutter::MutatorsStack::operator!= ( const MutatorsStack other) const
inline

Definition at line 279 of file embedded_views.h.

279 {
280 return !operator==(other);
281 }
bool operator==(const MutatorsStack &other) const

References operator==().

◆ operator!=() [2/2]

bool flutter::MutatorsStack::operator!= ( const std::vector< Mutator > &  other) const
inline

Definition at line 283 of file embedded_views.h.

283 {
284 return !operator==(other);
285 }

References operator==().

◆ operator==() [1/2]

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

Definition at line 255 of file embedded_views.h.

255 {
256 if (vector_.size() != other.vector_.size()) {
257 return false;
258 }
259 for (size_t i = 0; i < vector_.size(); i++) {
260 if (*vector_[i] != *other.vector_[i]) {
261 return false;
262 }
263 }
264 return true;
265 }

References i.

Referenced by operator!=(), and operator!=().

◆ operator==() [2/2]

bool flutter::MutatorsStack::operator== ( const std::vector< Mutator > &  other) const
inline

Definition at line 267 of file embedded_views.h.

267 {
268 if (vector_.size() != other.size()) {
269 return false;
270 }
271 for (size_t i = 0; i < vector_.size(); i++) {
272 if (*vector_[i] != other[i]) {
273 return false;
274 }
275 }
276 return true;
277 }

References i.

◆ Pop()

void flutter::MutatorsStack::Pop ( )

Definition at line 121 of file embedded_views.cc.

121 {
122 vector_.pop_back();
123}

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

◆ PopTo()

void flutter::MutatorsStack::PopTo ( size_t  stack_count)

Definition at line 125 of file embedded_views.cc.

125 {
126 while (vector_.size() > stack_count) {
127 Pop();
128 }
129}
size_t stack_count() const

References Pop(), and stack_count().

◆ PushBackdropFilter()

void flutter::MutatorsStack::PushBackdropFilter ( const std::shared_ptr< DlImageFilter > &  filter,
const DlRect filter_rect 
)

Definition at line 91 of file embedded_views.cc.

93 {
94 std::shared_ptr<Mutator> element =
95 std::make_shared<Mutator>(filter, filter_rect);
96 vector_.push_back(element);
97}

Referenced by flutter::EmbeddedViewParams::PushImageFilter(), flutter::testing::TEST(), and flutter::testing::TEST().

◆ PushClipPath()

void flutter::MutatorsStack::PushClipPath ( const DlPath path)

Definition at line 76 of file embedded_views.cc.

76 {
77 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(path);
78 vector_.push_back(element);
79}
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

References flutter::path.

Referenced by flutter::testing::TEST(), flutter::testing::TEST(), and flutter::ClipPathEntry::update_mutators().

◆ PushClipRect()

void flutter::MutatorsStack::PushClipRect ( const DlRect rect)

Definition at line 61 of file embedded_views.cc.

61 {
62 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(rect);
63 vector_.push_back(element);
64}

Referenced by flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::ClipRectEntry::update_mutators().

◆ PushClipRRect()

void flutter::MutatorsStack::PushClipRRect ( const DlRoundRect rrect)

Definition at line 66 of file embedded_views.cc.

66 {
67 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(rrect);
68 vector_.push_back(element);
69}

Referenced by flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::ClipRRectEntry::update_mutators().

◆ PushClipRSE()

void flutter::MutatorsStack::PushClipRSE ( const DlRoundSuperellipse rrect)

Definition at line 71 of file embedded_views.cc.

71 {
72 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(rrect);
73 vector_.push_back(element);
74}

Referenced by flutter::testing::TEST(), and flutter::ClipRSuperellipseEntry::update_mutators().

◆ PushOpacity()

void flutter::MutatorsStack::PushOpacity ( const uint8_t &  alpha)

Definition at line 86 of file embedded_views.cc.

86 {
87 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(alpha);
88 vector_.push_back(element);
89}

Referenced by flutter::testing::TEST(), flutter::testing::TEST(), and flutter::OpacityEntry::update_mutators().

◆ PushPlatformViewClipPath()

void flutter::MutatorsStack::PushPlatformViewClipPath ( const DlPath path)

Definition at line 115 of file embedded_views.cc.

115 {
116 std::shared_ptr<Mutator> element =
117 std::make_shared<Mutator>(BackdropClipPath(path));
118 vector_.push_back(element);
119}

References flutter::path.

Referenced by flutter::EmbeddedViewParams::PushPlatformViewClipPath(), and flutter::testing::TEST().

◆ PushPlatformViewClipRect()

void flutter::MutatorsStack::PushPlatformViewClipRect ( const DlRect rect)

Definition at line 99 of file embedded_views.cc.

99 {
100 std::shared_ptr<Mutator> element =
101 std::make_shared<Mutator>(BackdropClipRect(rect));
102 vector_.push_back(element);
103}

Referenced by flutter::EmbeddedViewParams::PushPlatformViewClipRect(), and flutter::testing::TEST().

◆ PushPlatformViewClipRRect()

void flutter::MutatorsStack::PushPlatformViewClipRRect ( const DlRoundRect rrect)

Definition at line 104 of file embedded_views.cc.

104 {
105 std::shared_ptr<Mutator> element =
106 std::make_shared<Mutator>(BackdropClipRRect(rrect));
107 vector_.push_back(element);
108}

Referenced by flutter::EmbeddedViewParams::PushPlatformViewClipRRect(), and flutter::testing::TEST().

◆ PushPlatformViewClipRSuperellipse()

void flutter::MutatorsStack::PushPlatformViewClipRSuperellipse ( const DlRoundSuperellipse rse)

Definition at line 109 of file embedded_views.cc.

110 {
111 std::shared_ptr<Mutator> element =
112 std::make_shared<Mutator>(BackdropClipRSuperellipse(rse));
113 vector_.push_back(element);
114}

Referenced by flutter::EmbeddedViewParams::PushPlatformViewClipRSuperellipse(), and flutter::testing::TEST().

◆ PushTransform()

◆ stack_count()

size_t flutter::MutatorsStack::stack_count ( ) const
inline

Definition at line 253 of file embedded_views.h.

253{ return vector_.size(); }

Referenced by PopTo().

◆ Top()

const std::vector< std::shared_ptr< Mutator > >::const_reverse_iterator flutter::MutatorsStack::Top ( ) const

Definition at line 132 of file embedded_views.cc.

132 {
133 return vector_.rend();
134}

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


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