pub struct GlyphDecorationData {
pub text_decoration: TextDecoration,
pub underline_metrics: DecorationMetrics,
pub strikethrough_metrics: DecorationMetrics,
pub ascent: f32,
}Fields§
§text_decoration: TextDecorationThe text decoration configuration from the user
underline_metrics: DecorationMetricsUnderline offset and thickness from the font
strikethrough_metrics: DecorationMetricsStrikethrough offset and thickness from the font
ascent: f32Font ascent in EM units (ascent / upem). Used for overline positioning
Trait Implementations§
Source§impl Clone for GlyphDecorationData
impl Clone for GlyphDecorationData
Source§fn clone(&self) -> GlyphDecorationData
fn clone(&self) -> GlyphDecorationData
Returns a duplicate of the value. Read more
1.0.0 · 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 GlyphDecorationData
impl Debug for GlyphDecorationData
Source§impl PartialEq for GlyphDecorationData
impl PartialEq for GlyphDecorationData
impl StructuralPartialEq for GlyphDecorationData
Auto Trait Implementations§
impl Freeze for GlyphDecorationData
impl RefUnwindSafe for GlyphDecorationData
impl Send for GlyphDecorationData
impl Sync for GlyphDecorationData
impl Unpin for GlyphDecorationData
impl UnwindSafe for GlyphDecorationData
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