MCPcopy Create free account
hub / github.com/Tencent/tgfx / MakeCorner

Method MakeCorner

src/core/PathEffect.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::shared_ptr<PathEffect> PathEffect::MakeCorner(float radius) {
57 auto effect = SkCornerPathEffect::Make(radius);
58 if (effect == nullptr) {
59 return nullptr;
60 }
61 return std::shared_ptr<PathEffect>(new SkPathEffectWrapper(std::move(effect)));
62}
63} // namespace tgfx

Callers

nothing calls this directly

Calls 1

MakeFunction · 0.85

Tested by

no test coverage detected