pub struct ShapePath {
pub color: Color,
pub sub_paths: Vec<Path>,
pub fill_rule: FillRule,
/* private fields */
}Expand description
Fields§
§color: ColorThe color of the shape.
sub_paths: Vec<Path>The paths.
fill_rule: FillRuleuserData.style.fillRule.
Implementations§
Source§impl ShapePath
impl ShapePath
Sourcepub fn move_to(&mut self, x: f64, y: f64) -> &mut Self
pub fn move_to(&mut self, x: f64, y: f64) -> &mut Self
ShapePath.moveTo( x, y ): starts a new sub-path.
Sourcepub fn quadratic_curve_to(
&mut self,
a_c_px: f64,
a_c_py: f64,
a_x: f64,
a_y: f64,
) -> &mut Self
pub fn quadratic_curve_to( &mut self, a_c_px: f64, a_c_py: f64, a_x: f64, a_y: f64, ) -> &mut Self
ShapePath.quadraticCurveTo( aCPx, aCPy, aX, aY ).
Sourcepub fn bezier_curve_to(
&mut self,
a_cp1x: f64,
a_cp1y: f64,
a_cp2x: f64,
a_cp2y: f64,
a_x: f64,
a_y: f64,
) -> &mut Self
pub fn bezier_curve_to( &mut self, a_cp1x: f64, a_cp1y: f64, a_cp2x: f64, a_cp2y: f64, a_x: f64, a_y: f64, ) -> &mut Self
ShapePath.bezierCurveTo( aCP1x, aCP1y, aCP2x, aCP2y, aX, aY ).
Sourcepub fn spline_thru(&mut self, pts: &[Vector2]) -> &mut Self
pub fn spline_thru(&mut self, pts: &[Vector2]) -> &mut Self
ShapePath.splineThru( pts ).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ShapePath
impl !Send for ShapePath
impl !Sync for ShapePath
impl !UnwindSafe for ShapePath
impl Freeze for ShapePath
impl Unpin for ShapePath
impl UnsafeUnpin for ShapePath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more