Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
SkCornerPathEffect Class Reference

#include <SkCornerPathEffect.h>

Static Public Member Functions

static sk_sp< SkPathEffectMake (SkScalar radius)
 
static void RegisterFlattenables ()
 

Detailed Description

SkCornerPathEffect is a subclass of SkPathEffect that can turn sharp corners into various treatments (e.g. rounded corners)

Definition at line 22 of file SkCornerPathEffect.h.

Member Function Documentation

◆ Make()

sk_sp< SkPathEffect > SkCornerPathEffect::Make ( SkScalar  radius)
static

radius must be > 0 to have an effect. It specifies the distance from each corner that should be "rounded".

Definition at line 181 of file SkCornerPathEffect.cpp.

181 {
182 return SkIsFinite(radius) && (radius > 0) ?
183 sk_sp<SkPathEffect>(new SkCornerPathEffectImpl(radius)) : nullptr;
184}
static bool SkIsFinite(T x, Pack... values)

◆ RegisterFlattenables()

void SkCornerPathEffect::RegisterFlattenables ( )
static

Definition at line 186 of file SkCornerPathEffect.cpp.

186 {
188}
static sk_sp< SkFlattenable > CreateProc(SkReadBuffer &buffer)
static void Register(const char name[], Factory)

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