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

#include <embedded_views.h>

Public Member Functions

 EmbeddedViewParams ()=default
 
 EmbeddedViewParams (SkMatrix matrix, SkSize size_points, MutatorsStack mutators_stack)
 
const SkMatrixtransformMatrix () const
 
const SkSizesizePoints () const
 
const MutatorsStackmutatorsStack () const
 
const SkRectfinalBoundingRect () const
 
void PushImageFilter (const std::shared_ptr< const DlImageFilter > &filter, const SkRect &filter_rect)
 
bool operator== (const EmbeddedViewParams &other) const
 

Detailed Description

Definition at line 265 of file embedded_views.h.

Constructor & Destructor Documentation

◆ EmbeddedViewParams() [1/2]

flutter::EmbeddedViewParams::EmbeddedViewParams ( )
default

◆ EmbeddedViewParams() [2/2]

flutter::EmbeddedViewParams::EmbeddedViewParams ( SkMatrix  matrix,
SkSize  size_points,
MutatorsStack  mutators_stack 
)
inline

Definition at line 269 of file embedded_views.h.

272 : matrix_(matrix),
273 size_points_(size_points),
274 mutators_stack_(std::move(mutators_stack)) {
275 SkPath path;
276 SkRect starting_rect = SkRect::MakeSize(size_points);
277 path.addRect(starting_rect);
278 path.transform(matrix);
279 final_bounding_rect_ = path.getBounds();
280 }
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
static constexpr SkRect MakeSize(const SkSize &size)
Definition SkRect.h:633

Member Function Documentation

◆ finalBoundingRect()

const SkRect & flutter::EmbeddedViewParams::finalBoundingRect ( ) const
inline

Definition at line 294 of file embedded_views.h.

294{ return final_bounding_rect_; }

◆ mutatorsStack()

const MutatorsStack & flutter::EmbeddedViewParams::mutatorsStack ( ) const
inline

Definition at line 290 of file embedded_views.h.

290{ return mutators_stack_; };

◆ operator==()

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

Definition at line 304 of file embedded_views.h.

304 {
305 return size_points_ == other.size_points_ &&
306 mutators_stack_ == other.mutators_stack_ &&
307 final_bounding_rect_ == other.final_bounding_rect_ &&
308 matrix_ == other.matrix_;
309 }

◆ PushImageFilter()

void flutter::EmbeddedViewParams::PushImageFilter ( const std::shared_ptr< const DlImageFilter > &  filter,
const SkRect filter_rect 
)
inline

Definition at line 299 of file embedded_views.h.

300 {
301 mutators_stack_.PushBackdropFilter(filter, filter_rect);
302 }
void PushBackdropFilter(const std::shared_ptr< const DlImageFilter > &filter, const SkRect &filter_rect)

◆ sizePoints()

const SkSize & flutter::EmbeddedViewParams::sizePoints ( ) const
inline

Definition at line 287 of file embedded_views.h.

287{ return size_points_; };

◆ transformMatrix()

const SkMatrix & flutter::EmbeddedViewParams::transformMatrix ( ) const
inline

Definition at line 284 of file embedded_views.h.

284{ return matrix_; };

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