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