Flutter Impeller
impeller::Canvas::RRectBlurShape Class Reference

Inherits impeller::Canvas::BlurShape.

Public Member Functions

 RRectBlurShape (const Rect &rect, Scalar corner_radius)
 
Rect GetBounds () const override
 
std::shared_ptr< SolidBlurContents > BuildBlurContent (Sigma sigma) override
 
const Geometry & BuildDrawGeometry () override
 

Detailed Description

Definition at line 230 of file canvas.cc.

Constructor & Destructor Documentation

◆ RRectBlurShape()

impeller::Canvas::RRectBlurShape::RRectBlurShape ( const Rect &  rect,
Scalar  corner_radius 
)
inline

Definition at line 232 of file canvas.cc.

233  : rect_(rect), corner_radius_(corner_radius) {}

Member Function Documentation

◆ BuildBlurContent()

std::shared_ptr<SolidBlurContents> impeller::Canvas::RRectBlurShape::BuildBlurContent ( Sigma  sigma)
inlineoverride

Definition at line 237 of file canvas.cc.

237  {
238  auto contents = std::make_shared<SolidRRectBlurContents>();
239  contents->SetSigma(sigma);
240  contents->SetShape(rect_, corner_radius_);
241  return contents;
242  }

◆ BuildDrawGeometry()

const Geometry& impeller::Canvas::RRectBlurShape::BuildDrawGeometry ( )
inlineoverride

Definition at line 244 of file canvas.cc.

244  {
245  return geom_.emplace(rect_, Size(corner_radius_));
246  }
TSize< Scalar > Size
Definition: size.h:159

◆ GetBounds()

Rect impeller::Canvas::RRectBlurShape::GetBounds ( ) const
inlineoverride

Definition at line 235 of file canvas.cc.

235 { return rect_; }

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