Type Alias PathBuilder

pub type PathBuilder = Handle<SkPathBuilder>;

Aliased Type§

struct PathBuilder(/* private fields */);

Implementations

§

impl Handle<SkPathBuilder>

pub fn new() -> Handle<SkPathBuilder>

pub fn new_path(path: &Handle<SkPath>) -> Handle<SkPathBuilder>

pub fn fill_type(&self) -> SkPathFillType

pub fn compute_bounds(&self) -> Rect

pub fn snapshot(&self) -> Handle<SkPath>

pub fn detach(&mut self) -> Handle<SkPath>

pub fn set_fill_type( &mut self, ft: SkPathFillType, ) -> &mut Handle<SkPathBuilder>

pub fn set_is_volatile( &mut self, is_volatile: bool, ) -> &mut Handle<SkPathBuilder>

pub fn reset(&mut self) -> &mut Handle<SkPathBuilder>

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

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

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

pub fn conic_to( &mut self, p1: impl Into<Point>, p2: impl Into<Point>, w: f32, ) -> &mut Handle<SkPathBuilder>

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

pub fn close(&mut self) -> &mut Handle<SkPathBuilder>

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

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

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

pub fn r_conic_to( &mut self, pt1: impl Into<Point>, pt2: impl Into<Point>, w: f32, ) -> &mut Handle<SkPathBuilder>

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

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

pub fn arc_to_tangent( &mut self, p1: impl Into<Point>, p2: impl Into<Point>, radius: f32, ) -> &mut Handle<SkPathBuilder>

pub fn arc_to_radius( &mut self, r: impl Into<Point>, x_axis_rotate: f32, large_arc: SkPathBuilder_ArcSize, sweep: SkPathDirection, xy: impl Into<Point>, ) -> &mut Handle<SkPathBuilder>

pub fn add_arc( &mut self, oval: impl AsRef<Rect>, start_angle_deg: f32, sweep_angle_deg: f32, ) -> &mut Handle<SkPathBuilder>

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

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

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

pub fn add_circle( &mut self, center: impl Into<Point>, radius: f32, dir: impl Into<Option<SkPathDirection>>, ) -> &mut Handle<SkPathBuilder>

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

pub fn add_path(&mut self, path: &Handle<SkPath>) -> &mut Handle<SkPathBuilder>

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

pub fn offset(&mut self, d: impl Into<Point>) -> &mut Handle<SkPathBuilder>

pub fn toggle_inverse_fill_type(&mut self) -> &mut Handle<SkPathBuilder>

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

👎Deprecated since 0.35.0: Removed without replacement

Trait Implementations

§

impl<N> AsRef<Handle<N>> for Handle<N>
where N: NativeDrop,

§

fn as_ref(&self) -> &Handle<N>

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<N> Clone for Handle<N>
where N: NativeDrop + NativeClone,

§

fn clone(&self) -> Handle<N>

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
§

impl Clone for Handle<SkPathBuilder>

§

fn clone(&self) -> Handle<SkPathBuilder>

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
§

impl Debug for Handle<SkPathBuilder>

§

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

Formats the value using the given formatter. Read more
§

impl<N> Drop for Handle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> Hash for Handle<N>
where N: NativeDrop + NativeHash,

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<N> PartialEq for Handle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &Handle<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<N> RefWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap_ref(native: &N) -> &Handle<N>

§

fn wrap_mut(native: &mut N) -> &mut Handle<N>

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl<N> ValueWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap(native: N) -> Handle<N>
where N: NativeDrop,

§

fn unwrap(self) -> N

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl Send for Handle<SkPathBuilder>

§

impl Sync for Handle<SkPathBuilder>