Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::MutatorsStack Class Reference

#include <embedded_views.h>

Public Member Functions

 MutatorsStack ()=default
 
void PushClipRect (const SkRect &rect)
 
void PushClipRRect (const SkRRect &rrect)
 
void PushClipPath (const SkPath &path)
 
void PushTransform (const SkMatrix &matrix)
 
void PushOpacity (const int &alpha)
 
void PushBackdropFilter (const std::shared_ptr< const DlImageFilter > &filter, const SkRect &filter_rect)
 
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 190 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

Definition at line 115 of file embedded_views.cc.

115 {
116 return vector_.begin();
117}

◆ Bottom()

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

Definition at line 110 of file embedded_views.cc.

110 {
111 return vector_.rbegin();
112}

◆ End()

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

Definition at line 119 of file embedded_views.cc.

120 {
121 return vector_.end();
122}

◆ is_empty()

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

Definition at line 226 of file embedded_views.h.

226{ return vector_.empty(); }

◆ operator!=() [1/2]

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

Definition at line 253 of file embedded_views.h.

253 {
254 return !operator==(other);
255 }
bool operator==(const MutatorsStack &other) const

◆ operator!=() [2/2]

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

Definition at line 257 of file embedded_views.h.

257 {
258 return !operator==(other);
259 }

◆ operator==() [1/2]

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

Definition at line 229 of file embedded_views.h.

229 {
230 if (vector_.size() != other.vector_.size()) {
231 return false;
232 }
233 for (size_t i = 0; i < vector_.size(); i++) {
234 if (*vector_[i] != *other.vector_[i]) {
235 return false;
236 }
237 }
238 return true;
239 }

◆ operator==() [2/2]

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

Definition at line 241 of file embedded_views.h.

241 {
242 if (vector_.size() != other.size()) {
243 return false;
244 }
245 for (size_t i = 0; i < vector_.size(); i++) {
246 if (*vector_[i] != other[i]) {
247 return false;
248 }
249 }
250 return true;
251 }

◆ Pop()

void flutter::MutatorsStack::Pop ( )

Definition at line 94 of file embedded_views.cc.

94 {
95 vector_.pop_back();
96}

◆ PopTo()

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

Definition at line 98 of file embedded_views.cc.

98 {
99 while (vector_.size() > stack_count) {
100 Pop();
101 }
102}
size_t stack_count() const

◆ PushBackdropFilter()

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

Definition at line 86 of file embedded_views.cc.

88 {
89 std::shared_ptr<Mutator> element =
90 std::make_shared<Mutator>(filter, filter_rect);
91 vector_.push_back(element);
92}

◆ PushClipPath()

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

Definition at line 71 of file embedded_views.cc.

71 {
72 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(path);
73 vector_.push_back(element);
74}
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 switches.h:57

◆ PushClipRect()

void flutter::MutatorsStack::PushClipRect ( const SkRect 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}

◆ PushClipRRect()

void flutter::MutatorsStack::PushClipRRect ( const SkRRect 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}

◆ PushOpacity()

void flutter::MutatorsStack::PushOpacity ( const int alpha)

Definition at line 81 of file embedded_views.cc.

81 {
82 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(alpha);
83 vector_.push_back(element);
84}

◆ PushTransform()

void flutter::MutatorsStack::PushTransform ( const SkMatrix matrix)

Definition at line 76 of file embedded_views.cc.

76 {
77 std::shared_ptr<Mutator> element = std::make_shared<Mutator>(matrix);
78 vector_.push_back(element);
79}

◆ stack_count()

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

Definition at line 227 of file embedded_views.h.

227{ return vector_.size(); }

◆ Top()

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

Definition at line 105 of file embedded_views.cc.

105 {
106 return vector_.rend();
107}

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