pub struct TextStroke {
pub color: Rgba,
pub width: f32,
}Expand description
A band around the glyphs and the strokes listed before it, drawn behind them.
Fields§
§color: RgbaBand color.
width: f32Band width as a fraction of the font size, positive; a text’s strokes sum to at most
MAX_TEXT_STROKE_EXTENT.
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<'de> Deserialize<'de> for TextStroke
impl<'de> Deserialize<'de> for TextStroke
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextStroke
impl PartialEq for TextStroke
Source§impl Serialize for TextStroke
impl Serialize 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