pub struct LineQuadParams {
pub from_x: f32,
pub from_y: f32,
pub to_x: f32,
pub to_y: f32,
pub half_width: f32,
pub color: Color,
pub aa_smooth: bool,
}Expand description
Parameters for a line-segment SDF quad.
Fields§
§from_x: f32Start x coordinate.
from_y: f32Start y coordinate.
to_x: f32End x coordinate.
to_y: f32End y coordinate.
half_width: f32Half-width of the line stroke.
color: ColorLine colour.
aa_smooth: booltrue = anti-aliased edges; false = hard clip.
Auto Trait Implementations§
impl Freeze for LineQuadParams
impl RefUnwindSafe for LineQuadParams
impl Send for LineQuadParams
impl Sync for LineQuadParams
impl Unpin for LineQuadParams
impl UnsafeUnpin for LineQuadParams
impl UnwindSafe for LineQuadParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more