Flutter Impeller
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 
)
inlineexplicit

Definition at line 236 of file path_component.h.

Member Function Documentation

◆ IsClosed()

constexpr bool impeller::ContourComponent::IsClosed ( ) const
inlineconstexpr

Definition at line 234 of file path_component.h.

234 { return closed == Point{0, 0}; }
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  }
constexpr bool IsClosed() const

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

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