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 332 of file path_component.h.

Constructor & Destructor Documentation

◆ ContourComponent() [1/2]

impeller::ContourComponent::ContourComponent ( )
inline

Definition at line 338 of file path_component.h.

338 {}

◆ ContourComponent() [2/2]

impeller::ContourComponent::ContourComponent ( Point  p,
Point  closed 
)
inlineexplicit

Definition at line 342 of file path_component.h.

Member Function Documentation

◆ IsClosed()

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

Definition at line 340 of file path_component.h.

340 { 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 345 of file path_component.h.

345  {
346  return destination == other.destination && IsClosed() == other.IsClosed();
347  }
constexpr bool IsClosed() const

References destination, and IsClosed().

Member Data Documentation

◆ closed

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

Definition at line 336 of file path_component.h.

Referenced by IsClosed().

◆ destination

Point impeller::ContourComponent::destination

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