Flutter Engine
The Flutter Engine
Public Types | Static Public Member Functions | List of all members
SkPath1DPathEffect Class Reference

#include <Sk1DPathEffect.h>

Public Types

enum  Style { kTranslate_Style , kRotate_Style , kMorph_Style , kLastEnum_Style = kMorph_Style }
 

Static Public Member Functions

static sk_sp< SkPathEffectMake (const SkPath &path, SkScalar advance, SkScalar phase, Style)
 
static void RegisterFlattenables ()
 

Detailed Description

Definition at line 18 of file Sk1DPathEffect.h.

Member Enumeration Documentation

◆ Style

Enumerator
kTranslate_Style 
kRotate_Style 
kMorph_Style 
kLastEnum_Style 

Definition at line 20 of file Sk1DPathEffect.h.

20 {
21 kTranslate_Style, // translate the shape to each position
22 kRotate_Style, // rotate the shape about its center
23 kMorph_Style, // transform each point, and turn lines into curves
24
26 };

Member Function Documentation

◆ Make()

sk_sp< SkPathEffect > SkPath1DPathEffect::Make ( const SkPath path,
SkScalar  advance,
SkScalar  phase,
Style  style 
)
static

Dash by replicating the specified path.

Parameters
pathThe path to replicate (dash)
advanceThe space between instances of path
phasedistance (mod advance) along path for its initial position
stylehow to transform path at each point (based on the current position and tangent)

Definition at line 250 of file Sk1DPathEffect.cpp.

251 {
252 if (advance <= 0 || !SkIsFinite(advance, phase) || path.isEmpty()) {
253 return nullptr;
254 }
255 return sk_sp<SkPathEffect>(new SkPath1DPathEffectImpl(path, advance, phase, style));
256}
static bool SkIsFinite(T x, Pack... values)
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

◆ RegisterFlattenables()

void SkPath1DPathEffect::RegisterFlattenables ( )
static

Definition at line 258 of file Sk1DPathEffect.cpp.

258 {
260}
#define SK_REGISTER_FLATTENABLE(type)

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