| Flutter Impeller |

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

`#include <round_rect.h>`

Inheritance diagram for impeller::RoundRectPathSource:

## Public Member Functions
| RoundRectPathSource (const RoundRect &round_rect)
| ~RoundRectPathSource ()
const RoundRect & | GetRoundRect () 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 149 of file round_rect.h.

## Constructor & Destructor Documentation

## ◆ RoundRectPathSource()

impeller::RoundRectPathSource::RoundRectPathSource | ( | const RoundRect & | round_rect | ) |
| explicit

Definition at line 124 of file round_rect.cc.

125 : round_rect_(round_rect) {}

## ◆ ~RoundRectPathSource()

impeller::RoundRectPathSource::~RoundRectPathSource | ( |  | ) |
| default

## Member Function Documentation

## ◆ Dispatch()

void impeller::RoundRectPathSource::Dispatch | ( | PathReceiver & | receiver | ) | const
| overridevirtual

Implements impeller::PathSource.

Definition at line 141 of file round_rect.cc.

141 {
142 round_rect_.Dispatch(receiver);
143 }

Referenced by impeller::testing::TEST().

## ◆ GetBounds()

Rect impeller::RoundRectPathSource::GetBounds | ( |  | ) | const
| overridevirtual

Implements impeller::PathSource.

Definition at line 133 of file round_rect.cc.

133 {
134 return round_rect_.GetBounds();
135 }
impeller::RoundRect::GetBounds
constexpr const Rect & GetBounds() const
Definition: round_rect.h:53

References impeller::RoundRect::GetBounds().

Referenced by impeller::testing::TEST().

## ◆ GetFillType()

FillType impeller::RoundRectPathSource::GetFillType | ( |  | ) | const
| overridevirtual

Implements impeller::PathSource.

Definition at line 129 of file round_rect.cc.

129 {
130 return FillType::kNonZero;
131 }
impeller::FillType::kNonZero
@ kNonZero

References impeller::kNonZero.

Referenced by impeller::testing::TEST().

## ◆ GetRoundRect()

const RoundRect& impeller::RoundRectPathSource::GetRoundRect | ( |  | ) | const
| inline

Definition at line 155 of file round_rect.h.

155 { return round_rect_; }

Referenced by impeller::FillRoundRectGeometry::CoversArea().

## ◆ IsConvex()

bool impeller::RoundRectPathSource::IsConvex | ( |  | ) | const
| overridevirtual

Implements impeller::PathSource.

Definition at line 137 of file round_rect.cc.

137 {
138 return true;
139 }

Referenced by impeller::testing::TEST().

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

- impeller/geometry/round_rect.h
- impeller/geometry/round_rect.cc