skia_
safe
0.87.0
Path
Builder
Aliased Type
Methods
add_arc
add_circle
add_oval
add_path
add_polygon
add_rect
add_rrect
arc_to
arc_to_radius
arc_to_tangent
close
compute_bounds
conic_to
count_points
cubic_to
detach
fill_type
get_last_pt
inc_reserve
is_empty
is_inverse_fill_type
line_to
move_to
new
new_path
offset
polyline_to
quad_to
r_conic_to
r_cubic_to
r_line_to
r_quad_to
reset
set_fill_type
set_is_volatile
set_last_pt
snapshot
toggle_inverse_fill_type
transform
Trait Implementations
Clone
Debug
Send
Sync
In crate skia_
safe
skia_safe
Type Alias
PathBuilder
Copy item path
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
], close:
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
transform
( &mut self, matrix: &
Matrix
, pc: impl
Into
<
Option
<
ApplyPerspectiveClip
>>, ) -> &mut Self
Source
pub fn
toggle_inverse_fill_type
(&mut self) -> &mut Self
Source
pub fn
is_empty
(&self) ->
bool
Source
pub fn
get_last_pt
(&self) ->
Option
<
Point
>
Source
pub fn
set_last_pt
(&mut self, p: impl
Into
<
Point
>)
Source
pub fn
count_points
(&self) ->
usize
Source
pub fn
is_inverse_fill_type
(&self) ->
bool
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