Flutter Engine
The Flutter Engine
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
 
virtual void append (SkPath *path)
 
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
 
virtual void draw (SkCanvas *canvas)=0
 
virtual void animate (double)=0
 

Additional Inherited Members

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

Detailed Description

Definition at line 518 of file MotionMarkSlide.cpp.

Constructor & Destructor Documentation

◆ CanvasBezierSegment()

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

Definition at line 520 of file MotionMarkSlide.cpp.

521 : CanvasLinePoint(random, size, prev) {
522 // Note: The construction of these points is odd but mirrors the Javascript code.
523
524 // The chosen point from the base constructor is instead the control point.
525 fPoint2 = this->getPoint();
526
527 // Get the second control point.
528 this->setEndPoint(random, size, prev);
529 fPoint3 = this->getPoint();
530
531 // Get third random point for the actual end point of the segment.
532 this->setEndPoint(random, size, prev);
533 }
static float prev(float f)
CanvasLinePoint(SkRandom *random, SkSize size, SkPoint *prev)
void setEndPoint(SkRandom *random, SkSize size, SkPoint *prevCoord)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

Member Function Documentation

◆ append()

void CanvasBezierSegment::append ( SkPath path)
inlineoverridevirtual

Reimplemented from CanvasLinePoint.

Definition at line 535 of file MotionMarkSlide.cpp.

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