Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CanvasQuadraticSegment Class Reference
Inheritance diagram for CanvasQuadraticSegment:
CanvasLinePoint MMObject

Public Member Functions

 CanvasQuadraticSegment (SkRandom *random, SkSize size, SkPoint *prev)
 
void append (SkPath *path) override
 
- Public Member Functions inherited from CanvasLinePoint
 CanvasLinePoint (SkRandom *random, SkSize size, SkPoint *prev)
 
 ~CanvasLinePoint () override=default
 
void draw (SkCanvas *) override
 
void animate (double) override
 
SkColor getColor ()
 
float getWidth ()
 
SkPoint getPoint ()
 
SkPoint getCoord ()
 
bool isSplit ()
 
void toggleIsSplit ()
 
- Public Member Functions inherited from MMObject
virtual ~MMObject ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from CanvasLinePoint
void setEndPoint (SkRandom *random, SkSize size, SkPoint *prevCoord)
 

Detailed Description

Definition at line 495 of file MotionMarkSlide.cpp.

Constructor & Destructor Documentation

◆ CanvasQuadraticSegment()

CanvasQuadraticSegment::CanvasQuadraticSegment ( SkRandom random,
SkSize  size,
SkPoint prev 
)
inline

Definition at line 497 of file MotionMarkSlide.cpp.

498 : CanvasLinePoint(random, size, prev) {
499 // Note: The construction of these points is odd but mirrors the Javascript code.
500
501 // The chosen point from the base constructor is instead the control point.
502 fPoint2 = this->getPoint();
503
504 // Get another random point for the actual end point of the segment.
505 this->setEndPoint(random, size, prev);
506 }
static float prev(float f)
void setEndPoint(SkRandom *random, SkSize size, SkPoint *prevCoord)

Member Function Documentation

◆ append()

void CanvasQuadraticSegment::append ( SkPath path)
inlineoverridevirtual

Reimplemented from CanvasLinePoint.

Definition at line 508 of file MotionMarkSlide.cpp.

508 {
509 path->quadTo(fPoint2, this->getPoint());
510 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switches.h:57

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