pub struct TextStroke {
pub color: [u8; 4],
pub width: f32,
}Expand description
An outline band drawn behind the glyphs and earlier strokes.
Stroke k dilates glyph coverage by a disc whose radius is the sum of widths up to k, with
the disc’s last pixel weighted down for antialiasing.
Fields§
§color: [u8; 4]Straight sRGB RGBA.
width: f32Positive width in pixels.
Trait Implementations§
Source§impl Clone for TextStroke
impl Clone for TextStroke
impl Copy for TextStroke
Source§impl Debug for TextStroke
impl Debug for TextStroke
Source§impl PartialEq for TextStroke
impl PartialEq for TextStroke
impl StructuralPartialEq for TextStroke
Auto Trait Implementations§
impl Freeze for TextStroke
impl RefUnwindSafe for TextStroke
impl Send for TextStroke
impl Sync for TextStroke
impl Unpin for TextStroke
impl UnsafeUnpin for TextStroke
impl UnwindSafe for TextStroke
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