pub struct TextShadow {
pub color: Rgba,
pub offset: Vec2,
pub blur: f32,
}Expand description
A shadow of a text’s glyphs and strokes, behind them.
Fields§
§color: RgbaShadow color.
offset: Vec2Offset in font sizes, +x right, +y down; each component in [-1, 1]
(MAX_TEXT_SHADOW_OFFSET).
blur: f32Blur radius in font sizes, as CSS text-shadow takes it (the Gaussian’s standard
deviation is half of it). In [0, 1] (MAX_TEXT_SHADOW_BLUR).
Trait Implementations§
Source§impl Clone for TextShadow
impl Clone for TextShadow
impl Copy for TextShadow
Source§impl Debug for TextShadow
impl Debug for TextShadow
Source§impl<'de> Deserialize<'de> for TextShadow
impl<'de> Deserialize<'de> for TextShadow
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 TextShadow
impl PartialEq for TextShadow
Source§impl Serialize for TextShadow
impl Serialize for TextShadow
impl StructuralPartialEq for TextShadow
Auto Trait Implementations§
impl Freeze for TextShadow
impl RefUnwindSafe for TextShadow
impl Send for TextShadow
impl Sync for TextShadow
impl Unpin for TextShadow
impl UnsafeUnpin for TextShadow
impl UnwindSafe for TextShadow
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