Type Definition skia_safe::PathBuilder

source ·
pub type PathBuilder = Handle<SkPathBuilder>;

Implementations§

source§

impl PathBuilder

source

pub fn new() -> Self

source

pub fn new_path(path: &Path) -> Self

source

pub fn fill_type(&self) -> PathFillType

source

pub fn compute_bounds(&self) -> Rect

source

pub fn snapshot(&self) -> Path

source

pub fn detach(&mut self) -> Path

source

pub fn set_fill_type(&mut self, ft: PathFillType) -> &mut Self

source

pub fn set_is_volatile(&mut self, is_volatile: bool) -> &mut Self

source

pub fn reset(&mut self) -> &mut Self

source

pub fn move_to(&mut self, pt: impl Into<Point>) -> &mut Self

source

pub fn line_to(&mut self, pt: impl Into<Point>) -> &mut Self

source

pub fn quad_to( &mut self, p1: impl Into<Point>, p2: impl Into<Point> ) -> &mut Self

source

pub fn conic_to( &mut self, p1: impl Into<Point>, p2: impl Into<Point>, w: scalar ) -> &mut Self

source

pub fn cubic_to( &mut self, p1: impl Into<Point>, p2: impl Into<Point>, p3: impl Into<Point> ) -> &mut Self

source

pub fn close(&mut self) -> &mut Self

source

pub fn polyline_to(&mut self, points: &[Point]) -> &mut Self

source

pub fn r_line_to(&mut self, pt: impl Into<Point>) -> &mut Self

source

pub fn r_quad_to( &mut self, pt1: impl Into<Point>, pt2: impl Into<Point> ) -> &mut Self

source

pub fn r_conic_to( &mut self, pt1: impl Into<Point>, pt2: impl Into<Point>, w: scalar ) -> &mut Self

source

pub fn r_cubic_to( &mut self, pt1: impl Into<Point>, pt2: impl Into<Point>, pt3: impl Into<Point> ) -> &mut Self

source

pub fn arc_to( &mut self, oval: impl AsRef<Rect>, start_angle_deg: scalar, sweep_angle_deg: scalar, force_move_to: bool ) -> &mut Self

source

pub fn arc_to_tangent( &mut self, p1: impl Into<Point>, p2: impl Into<Point>, radius: scalar ) -> &mut Self

source

pub fn arc_to_radius( &mut self, r: impl Into<Point>, x_axis_rotate: scalar, large_arc: ArcSize, sweep: PathDirection, xy: impl Into<Point> ) -> &mut Self

source

pub fn add_arc( &mut self, oval: impl AsRef<Rect>, start_angle_deg: scalar, sweep_angle_deg: scalar ) -> &mut Self

source

pub fn add_rect( &mut self, rect: impl AsRef<Rect>, dir: impl Into<Option<PathDirection>>, start_index: impl Into<Option<usize>> ) -> &mut Self

source

pub fn add_oval( &mut self, rect: impl AsRef<Rect>, dir: impl Into<Option<PathDirection>>, start_index: impl Into<Option<usize>> ) -> &mut Self

source

pub fn add_rrect( &mut self, rect: impl AsRef<RRect>, dir: impl Into<Option<PathDirection>>, start_index: impl Into<Option<usize>> ) -> &mut Self

source

pub fn add_circle( &mut self, center: impl Into<Point>, radius: scalar, dir: impl Into<Option<PathDirection>> ) -> &mut Self

source

pub fn add_polygon(&mut self, pts: &[Point], is_closed: bool) -> &mut Self

source

pub fn add_path(&mut self, path: &Path) -> &mut Self

source

pub fn inc_reserve(&mut self, extra_pt_count: usize, extra_verb_count: usize)

source

pub fn offset(&mut self, d: impl Into<Vector>) -> &mut Self

source

pub fn toggle_inverse_fill_type(&mut self) -> &mut Self

source

pub fn make( _points: &[Point], _verbs: &[u8], _conic_weights: &[scalar], _fill_type: PathFillType, _is_volatile: impl Into<Option<bool>> ) -> !

👎Deprecated since 0.35.0: Removed without replacement

Trait Implementations§

source§

impl Clone for PathBuilder

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PathBuilder

source§

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

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

impl Send for PathBuilder

source§

impl Sync for PathBuilder