skia_safe

Type Alias PathBuilder

Source
pub type PathBuilder = Handle<SkPathBuilder>;

Aliased Type§

struct PathBuilder(/* private fields */);

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