Flutter Engine
 
Loading...
Searching...
No Matches
impeller::RoundSuperellipsePathSource Class Reference

#include <round_superellipse.h>

Inheritance diagram for impeller::RoundSuperellipsePathSource:
impeller::PathSource

Public Member Functions

 RoundSuperellipsePathSource (const RoundSuperellipse &round_superellipse)
 
 ~RoundSuperellipsePathSource ()
 
const RoundSuperellipseGetRoundSuperellipse () const
 
FillType GetFillType () const override
 
Rect GetBounds () const override
 
bool IsConvex () const override
 
void Dispatch (PathReceiver &receiver) const override
 
- Public Member Functions inherited from impeller::PathSource
virtual ~PathSource ()=default
 

Detailed Description

Definition at line 142 of file round_superellipse.h.

Constructor & Destructor Documentation

◆ RoundSuperellipsePathSource()

impeller::RoundSuperellipsePathSource::RoundSuperellipsePathSource ( const RoundSuperellipse round_superellipse)
explicit

Definition at line 41 of file round_superellipse.cc.

43 : round_superellipse_(round_superellipse) {}

◆ ~RoundSuperellipsePathSource()

impeller::RoundSuperellipsePathSource::~RoundSuperellipsePathSource ( )
default

Member Function Documentation

◆ Dispatch()

void impeller::RoundSuperellipsePathSource::Dispatch ( PathReceiver receiver) const
overridevirtual

Implements impeller::PathSource.

Definition at line 59 of file round_superellipse.cc.

59 {
61 round_superellipse_.GetBounds(), round_superellipse_.GetRadii());
62 param.Dispatch(receiver);
63}
constexpr const Rect & GetBounds() const
constexpr const RoundingRadii & GetRadii() const
static RoundSuperellipseParam MakeBoundsRadii(const Rect &bounds, const RoundingRadii &radii)

References impeller::RoundSuperellipse::GetBounds(), impeller::RoundSuperellipse::GetRadii(), and impeller::RoundSuperellipseParam::MakeBoundsRadii().

◆ GetBounds()

Rect impeller::RoundSuperellipsePathSource::GetBounds ( ) const
overridevirtual

Implements impeller::PathSource.

Definition at line 51 of file round_superellipse.cc.

51 {
52 return round_superellipse_.GetBounds();
53}

References impeller::RoundSuperellipse::GetBounds().

◆ GetFillType()

FillType impeller::RoundSuperellipsePathSource::GetFillType ( ) const
overridevirtual

Implements impeller::PathSource.

Definition at line 47 of file round_superellipse.cc.

47 {
48 return FillType::kNonZero;
49}

References impeller::kNonZero.

◆ GetRoundSuperellipse()

const RoundSuperellipse & impeller::RoundSuperellipsePathSource::GetRoundSuperellipse ( ) const
inline

Definition at line 149 of file round_superellipse.h.

149 {
150 return round_superellipse_;
151 }

◆ IsConvex()

bool impeller::RoundSuperellipsePathSource::IsConvex ( ) const
overridevirtual

Implements impeller::PathSource.

Definition at line 55 of file round_superellipse.cc.

55 {
56 return true;
57}

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