pub struct TextBackground {
pub color: [u8; 4],
pub padding: f32,
}Expand description
A box behind each non-empty line: the line’s ink width and one font size
tall, grown by padding pixels on every side. Boxes that meet merge.
Fields§
§color: [u8; 4]Straight, sRGB-encoded RGBA.
padding: f32Space between the text and the box edge, in [0, 256] pixels.
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 PartialEq for TextBackground
impl PartialEq 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