Flutter Engine
The Flutter Engine
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
 
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 497 of file MotionMarkSlide.cpp.

Constructor & Destructor Documentation

◆ CanvasQuadraticSegment()

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

Definition at line 499 of file MotionMarkSlide.cpp.

500 : CanvasLinePoint(random, size, prev) {
501 // Note: The construction of these points is odd but mirrors the Javascript code.
502
503 // The chosen point from the base constructor is instead the control point.
504 fPoint2 = this->getPoint();
505
506 // Get another random point for the actual end point of the segment.
507 this->setEndPoint(random, size, prev);
508 }
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 CanvasQuadraticSegment::append ( SkPath path)
inlineoverridevirtual

Reimplemented from CanvasLinePoint.

Definition at line 510 of file MotionMarkSlide.cpp.

510 {
511 path->quadTo(fPoint2, this->getPoint());
512 }
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: