pub struct Trapezoid {
pub left: f32,
pub right: f32,
pub top: [f32; 2],
pub bottom: [f32; 2],
pub open_left: bool,
pub open_right: bool,
}Expand description
One vertical slice of a filled path: the area between a top and a bottom
edge, each straight, over the columns from left to right.
A side that the next slice of the same fill continues past is shared: a pixel there belongs to the slice whose columns hold its centre, and the side is drawn hard. An open side is part of the fill’s outline, and its pixels take the share of them it covers.
Fields§
§left: f32§right: f32§top: [f32; 2]The top edge’s y at left and at right.
bottom: [f32; 2]The bottom edge’s y at left and at right.
open_left: bool§open_right: boolImplementations§
Trait Implementations§
impl Copy for Trapezoid
impl StructuralPartialEq for Trapezoid
Auto Trait Implementations§
impl Freeze for Trapezoid
impl RefUnwindSafe for Trapezoid
impl Send for Trapezoid
impl Sync for Trapezoid
impl Unpin for Trapezoid
impl UnsafeUnpin for Trapezoid
impl UnwindSafe for Trapezoid
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