Type Definition skia_safe::PathEffect

source ·
pub type PathEffect = RCHandle<SkPathEffect>;

Implementations§

source§

impl PathEffect

source

pub fn sum( first: impl Into<PathEffect>, second: impl Into<PathEffect> ) -> PathEffect

source

pub fn compose( first: impl Into<PathEffect>, second: impl Into<PathEffect> ) -> PathEffect

source

pub fn as_a_dash(&self) -> Option<DashInfo>

source

pub fn filter_path( &self, src: &Path, stroke_rec: &StrokeRec, cull_rect: impl AsRef<Rect> ) -> Option<(Path, StrokeRec)>

source

pub fn filter_path_inplace( &self, dst: &mut Path, src: &Path, stroke_rec: &mut StrokeRec, cull_rect: impl AsRef<Rect> ) -> bool

source

pub fn filter_path_inplace_with_matrix( &self, dst: &mut Path, src: &Path, stroke_rec: &mut StrokeRec, cull_rect: impl AsRef<Rect>, ctm: &Matrix ) -> bool

source

pub fn needs_ctm(&self) -> bool

source§

impl PathEffect

source

pub fn path_1d( path: &Path, advance: scalar, phase: scalar, style: Style ) -> Option<PathEffect>

source§

impl PathEffect

source

pub fn line_2d(width: scalar, matrix: &Matrix) -> Option<PathEffect>

source

pub fn path_2d(matrix: &Matrix, path: &Path) -> PathEffect

source§

impl PathEffect

source

pub fn corner_path(radius: scalar) -> Option<Self>

source§

impl PathEffect

source

pub fn dash(intervals: &[scalar], phase: scalar) -> Option<Self>

source§

impl PathEffect

source

pub fn discrete( seg_length: scalar, dev: scalar, seed_assist: impl Into<Option<u32>> ) -> Option<Self>

source§

impl PathEffect

source

pub fn merge( one: impl Into<PathEffect>, two: impl Into<PathEffect>, op: PathOp ) -> PathEffect

source§

impl PathEffect

source§

impl PathEffect

source

pub fn stroke( width: scalar, join: Join, cap: Cap, miter: impl Into<Option<scalar>> ) -> Option<PathEffect>

source§

impl PathEffect

source

pub fn trim( start_t: scalar, stop_t: scalar, mode: impl Into<Option<Mode>> ) -> Option<PathEffect>

Trait Implementations§

source§

impl Debug for PathEffect

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Send for PathEffect

source§

impl Sync for PathEffect