| Flutter Impeller |

Public Member Functions | List of all members
impeller::Canvas::RSuperellipseBlurShape Class Reference

Inherits impeller::Canvas::BlurShape.

## Public Member Functions
| RSuperellipseBlurShape (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 209 of file canvas.cc.

## Constructor & Destructor Documentation

## ◆ RSuperellipseBlurShape()

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

Definition at line 211 of file canvas.cc.

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

## Member Function Documentation

## ◆ BuildBlurContent()

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

Definition at line 216 of file canvas.cc.

216 {
217 auto contents = std::make_shared<SolidRSuperellipseBlurContents>();
218 contents->SetSigma(sigma);
219 contents->SetShape(rect_, corner_radius_);
220 return contents;
221 }

## ◆ BuildDrawGeometry()

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

Definition at line 223 of file canvas.cc.

223 {
224 return geom_.emplace(rect_, corner_radius_);
225 }

## ◆ GetBounds()

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

Definition at line 214 of file canvas.cc.

214 { return rect_; }

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

- impeller/display_list/canvas.cc