pub struct DecorationLine {
pub position: f32,
pub thickness: f32,
pub color: Rgba8,
}Expand description
A single text decoration line (underline, overline, or strikethrough).
Position and thickness are in pixels relative to the text baseline.
Fields§
§position: f32Distance from the baseline to the decoration line, in pixels. By convention positive values are above the baseline (overline, strikethrough) and negative values below (underline).
thickness: f32Stroke thickness in pixels.
color: Rgba8Decoration color.
Trait Implementations§
Source§impl Clone for DecorationLine
impl Clone for DecorationLine
Source§fn clone(&self) -> DecorationLine
fn clone(&self) -> DecorationLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecorationLine
impl Debug for DecorationLine
Source§impl PartialEq for DecorationLine
impl PartialEq for DecorationLine
Source§fn eq(&self, other: &DecorationLine) -> bool
fn eq(&self, other: &DecorationLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DecorationLine
impl StructuralPartialEq for DecorationLine
Auto Trait Implementations§
impl Freeze for DecorationLine
impl RefUnwindSafe for DecorationLine
impl Send for DecorationLine
impl Sync for DecorationLine
impl Unpin for DecorationLine
impl UnsafeUnpin for DecorationLine
impl UnwindSafe for DecorationLine
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