| Flutter Impeller |

Public Member Functions | List of all members
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 184 of file canvas.cc.

## Constructor & Destructor Documentation

## ◆ RRectBlurShape()

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

Definition at line 186 of file canvas.cc.

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

## Member Function Documentation

## ◆ BuildBlurContent()

std::shared_ptr<SolidBlurContents> impeller::Canvas::RRectBlurShape::BuildBlurContent | ( | Sigma | sigma | ) |
| inline override

Definition at line 191 of file canvas.cc.

191 {
192 auto contents = std::make_shared<SolidRRectBlurContents>();
193 contents->SetSigma(sigma);
194 contents->SetShape(rect_, corner_radius_);
195 return contents;
196 }

## ◆ BuildDrawGeometry()

const Geometry& impeller::Canvas::RRectBlurShape::BuildDrawGeometry | ( |  | ) |
| inline override

Definition at line 198 of file canvas.cc.

198 {
199 return geom_.emplace(rect_, Size(corner_radius_));
200 }
impeller::Size
TSize< Scalar > Size
Definition: size.h:159

## ◆ GetBounds()

Rect impeller::Canvas::RRectBlurShape::GetBounds | ( |  | ) | const
| inline override

Definition at line 189 of file canvas.cc.

189 { return rect_; }

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

- impeller/display_list/canvas.cc