pub struct StrokedBox { /* private fields */ }Expand description
The band a stroke covers around a rounded box, with the sizes and radii of its two edges worked out once, for the distances of many points.
Implementations§
Source§impl StrokedBox
impl StrokedBox
Sourcepub fn new(
center: Point,
half_size: (f32, f32),
radii: [f32; 4],
half_width: f32,
join: StrokeJoin,
) -> Self
pub fn new( center: Point, half_size: (f32, f32), radii: [f32; 4], half_width: f32, join: StrokeJoin, ) -> Self
The band sdf_stroked_rounded_rect measures, around a box centred
on center.
Sourcepub fn of_rect(
rect: Rect,
radii: Option<CornerRadii>,
half_width: f32,
join: StrokeJoin,
) -> Self
pub fn of_rect( rect: Rect, radii: Option<CornerRadii>, half_width: f32, join: StrokeJoin, ) -> Self
The band of the stroke stroked_rect_coverage covers.
Auto Trait Implementations§
impl Forget for StrokedBox
impl Freeze for StrokedBox
impl Move for StrokedBox
impl RefUnwindSafe for StrokedBox
impl Send for StrokedBox
impl Sync for StrokedBox
impl Unpin for StrokedBox
impl UnsafeUnpin for StrokedBox
impl UnwindSafe for StrokedBox
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