1 | use crate::{scalar, PathEffect}; |
---|---|
2 | use skia_bindings as sb; |
3 | |
4 | impl PathEffect { |
5 | pub fn corner_path(radius: scalar) -> Option<Self> { |
6 | new(radius) |
7 | } |
8 | } |
9 | |
10 | pub fn new(radius: scalar) -> Option<PathEffect> { |
11 | PathEffect::from_ptr(unsafe { sb::C_SkCornerPathEffect_Make(radius) }) |
12 | } |
13 |