pub struct TextBackground {
pub color: Rgba,
pub padding: f32,
}Expand description
A box behind each line of text.
Fields§
§color: RgbaBox color.
padding: f32Space between the text and the box edge, as a fraction of the font
size, in [0, 2].
Trait Implementations§
Source§impl Clone for TextBackground
impl Clone for TextBackground
impl Copy for TextBackground
Source§impl Debug for TextBackground
impl Debug for TextBackground
Source§impl<'de> Deserialize<'de> for TextBackground
impl<'de> Deserialize<'de> for TextBackground
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 TextBackground
impl PartialEq for TextBackground
Source§impl Serialize for TextBackground
impl Serialize for TextBackground
impl StructuralPartialEq for TextBackground
Auto Trait Implementations§
impl Freeze for TextBackground
impl RefUnwindSafe for TextBackground
impl Send for TextBackground
impl Sync for TextBackground
impl Unpin for TextBackground
impl UnsafeUnpin for TextBackground
impl UnwindSafe for TextBackground
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