A PathSource that generates the various segments of a dashed line. More...
#include <dashed_line_path_source.h>
Public Member Functions | |
DashedLinePathSource (Point p0, Point p1, Scalar on_length, Scalar off_length) | |
~DashedLinePathSource () | |
FillType | GetFillType () const override |
Rect | GetBounds () const override |
bool | IsConvex () const override |
void | Dispatch (PathReceiver &receiver) const override |
![]() | |
virtual | ~PathSource ()=default |
A PathSource that generates the various segments of a dashed line.
Definition at line 15 of file dashed_line_path_source.h.
impeller::DashedLinePathSource::DashedLinePathSource | ( | Point | p0, |
Point | p1, | ||
Scalar | on_length, | ||
Scalar | off_length | ||
) |
Definition at line 9 of file dashed_line_path_source.cc.
|
default |
|
overridevirtual |
Implements impeller::PathSource.
Definition at line 29 of file dashed_line_path_source.cc.
References impeller::TPoint< T >::GetDistance(), impeller::PathReceiver::LineTo(), and impeller::PathReceiver::MoveTo().
Referenced by impeller::testing::TEST().
|
overridevirtual |
Implements impeller::PathSource.
Definition at line 21 of file dashed_line_path_source.cc.
References impeller::TRect< T >::GetPositive(), impeller::TRect< Scalar >::MakeLTRB(), impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::testing::TEST().
|
overridevirtual |
Implements impeller::PathSource.
Definition at line 17 of file dashed_line_path_source.cc.
References impeller::kNonZero.
Referenced by impeller::testing::TEST().
|
overridevirtual |
Implements impeller::PathSource.
Definition at line 25 of file dashed_line_path_source.cc.
Referenced by impeller::testing::TEST().