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

Public Member Functions

 CanvasBezierSegment (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 516 of file MotionMarkSlide.cpp.

Constructor & Destructor Documentation

◆ CanvasBezierSegment()

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

Definition at line 518 of file MotionMarkSlide.cpp.

519 : CanvasLinePoint(random, size, prev) {
520 // Note: The construction of these points is odd but mirrors the Javascript code.
521
522 // The chosen point from the base constructor is instead the control point.
523 fPoint2 = this->getPoint();
524
525 // Get the second control point.
526 this->setEndPoint(random, size, prev);
527 fPoint3 = this->getPoint();
528
529 // Get third random point for the actual end point of the segment.
530 this->setEndPoint(random, size, prev);
531 }
static float prev(float f)
void setEndPoint(SkRandom *random, SkSize size, SkPoint *prevCoord)

Member Function Documentation

◆ append()

void CanvasBezierSegment::append ( SkPath path)
inlineoverridevirtual

Reimplemented from CanvasLinePoint.

Definition at line 533 of file MotionMarkSlide.cpp.

533 {
534 path->cubicTo(fPoint2, fPoint3, this->getPoint());
535 }
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: