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< SolidBlurContentsBuildBlurContent (Sigma sigma) override
 
const GeometryBuildDrawGeometry () override
 

Detailed Description

Definition at line 188 of file canvas.cc.

Constructor & Destructor Documentation

◆ RRectBlurShape()

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

Definition at line 190 of file canvas.cc.

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

Member Function Documentation

◆ BuildBlurContent()

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

Definition at line 195 of file canvas.cc.

195  {
196  auto contents = std::make_shared<SolidRRectBlurContents>();
197  contents->SetSigma(sigma);
198  contents->SetShape(rect_, corner_radius_);
199  return contents;
200  }

◆ BuildDrawGeometry()

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

Definition at line 202 of file canvas.cc.

202  {
203  return geom_.emplace(rect_, Size(corner_radius_));
204  }
TSize< Scalar > Size
Definition: size.h:159

◆ GetBounds()

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

Definition at line 193 of file canvas.cc.

193 { return rect_; }

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