pub struct Hatch {
pub angle: f64,
pub spacing: f64,
pub width: f64,
pub color: Rgb,
pub alpha: f64,
pub origin: [f64; 2],
}Expand description
parallel lines for Canvas::fill_hatch; two hatches over the same path cross
Fields§
§angle: f64direction of the lines in the canvas’s user space, radians from +x towards +y: counter- clockwise on the page where y points up (Origin::BottomLeft), clockwise where it points down (Origin::TopLeft, as Canvas::rotate)
spacing: f64distance between neighbouring lines (user space units), > 0
width: f64line width (user space units), > 0; at least spacing fills the path solid
color: Rgb§alpha: f640 to 1, times the canvas’s fill alpha
origin: [f64; 2]a point one of the lines runs through (user space)
Implementations§
Trait Implementations§
impl Copy for Hatch
impl StructuralPartialEq for Hatch
Auto Trait Implementations§
impl Forget for Hatch
impl Freeze for Hatch
impl Move for Hatch
impl RefUnwindSafe for Hatch
impl Send for Hatch
impl Sync for Hatch
impl Unpin for Hatch
impl UnsafeUnpin for Hatch
impl UnwindSafe for Hatch
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