| Flutter Impeller |

Public Member Functions | Public Attributes | List of all members
impeller::ContourComponent Struct Reference

`#include <path_component.h>`

## Public Member Functions
| ContourComponent ()
constexpr bool | IsClosed () const
| ContourComponent (Point p, Point closed)
bool | operator== (const ContourComponent &other) const

## Public Attributes
Point | destination
Point | closed = Point(1, 1)

## Detailed Description

Definition at line 226 of file path_component.h.

## Constructor & Destructor Documentation

## ◆ ContourComponent() [1/2]

impeller::ContourComponent::ContourComponent | ( |  | ) |
| inline

Definition at line 232 of file path_component.h.

232 {}

## ◆ ContourComponent() [2/2]

impeller::ContourComponent::ContourComponent | ( | Point | p,
|  | Point | closed
| ) |  |
| inline explicit

Definition at line 236 of file path_component.h.

237 : destination(p), closed(closed) {}
impeller::ContourComponent::destination
Point destination
Definition: path_component.h:227
impeller::ContourComponent::closed
Point closed
Definition: path_component.h:230

## Member Function Documentation

## ◆ IsClosed()

constexpr bool impeller::ContourComponent::IsClosed | ( |  | ) | const
| inline constexpr

Definition at line 234 of file path_component.h.

234 { return closed == Point{0, 0}; }
impeller::Point
TPoint< Scalar > Point
Definition: point.h:327

References closed.

Referenced by operator==(), and impeller::testing::TEST().

## ◆ operator==()

bool impeller::ContourComponent::operator== | ( | const ContourComponent & | other | ) | const
| inline

Definition at line 239 of file path_component.h.

239 {
240 return destination == other.destination && IsClosed() == other.IsClosed();
241 }
impeller::ContourComponent::IsClosed
constexpr bool IsClosed() const
Definition: path_component.h:234

References destination, and IsClosed().

## Member Data Documentation

## ◆ closed

Point impeller::ContourComponent::closed = Point(1, 1)

Definition at line 230 of file path_component.h.

Referenced by IsClosed().

## ◆ destination

Point impeller::ContourComponent::destination

Definition at line 227 of file path_component.h.

Referenced by operator==(), impeller::PathBuilder::Shift(), and impeller::testing::TEST().

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

- impeller/geometry/path_component.h