1use crate::{prelude::*, MaskFilter, Shader};
2use skia_bindings as sb;
3
4impl MaskFilter {
5 pub fn from_shader(shader: impl Into<Shader>) -> MaskFilter {
6 new(shader)
7 }
8}
9
10pub fn new(shader: impl Into<Shader>) -> MaskFilter {
11 MaskFilterOption>::from_ptr(unsafe { sb::C_SkShaderMaskFilter_Make(shader:shader.into().into_ptr()) })
12 .unwrap()
13}
14