Flutter Engine
flutter::EmbeddedViewParams Class Reference

#include <embedded_views.h>

Public Member Functions

 EmbeddedViewParams ()=default
 
 EmbeddedViewParams (SkMatrix matrix, SkSize size_points, MutatorsStack mutators_stack)
 
 EmbeddedViewParams (const EmbeddedViewParams &other)
 
const SkSize & sizePoints () const
 
const MutatorsStackmutatorsStack () const
 
const SkRect & finalBoundingRect () const
 
bool operator== (const EmbeddedViewParams &other) const
 

Detailed Description

Definition at line 196 of file embedded_views.h.

Constructor & Destructor Documentation

◆ EmbeddedViewParams() [1/3]

flutter::EmbeddedViewParams::EmbeddedViewParams ( )
default

◆ EmbeddedViewParams() [2/3]

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

Definition at line 200 of file embedded_views.h.

References flutter::path.

203  : matrix_(matrix),
204  size_points_(size_points),
205  mutators_stack_(mutators_stack) {
206  SkPath path;
207  SkRect starting_rect = SkRect::MakeSize(size_points);
208  path.addRect(starting_rect);
209  path.transform(matrix);
210  final_bounding_rect_ = path.getBounds();
211  }
DEF_SWITCHES_START snapshot asset path
Definition: switches.h:32

◆ EmbeddedViewParams() [3/3]

flutter::EmbeddedViewParams::EmbeddedViewParams ( const EmbeddedViewParams other)
inline

Definition at line 213 of file embedded_views.h.

References flutter::Mutator::matrix_.

213  {
214  size_points_ = other.size_points_;
215  mutators_stack_ = other.mutators_stack_;
216  matrix_ = other.matrix_;
217  final_bounding_rect_ = other.final_bounding_rect_;
218  };

Member Function Documentation

◆ finalBoundingRect()

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

◆ mutatorsStack()

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

◆ operator==()

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

Definition at line 231 of file embedded_views.h.

References flutter::Mutator::matrix_.

231  {
232  return size_points_ == other.size_points_ &&
233  mutators_stack_ == other.mutators_stack_ &&
234  final_bounding_rect_ == other.final_bounding_rect_ &&
235  matrix_ == other.matrix_;
236  }

◆ sizePoints()

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

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