pub enum TextDecorationUnit {
FontRecommended,
FontRenderingEmSize,
Pixel,
}Expand description
Specifies the unit type of either a text decoration offset or thickness value.
Variants§
FontRecommended
A unit value that is relative to the font used for the text decoration. If the decoration spans multiple fonts, an average recommended value is calculated. This is the default value.
FontRenderingEmSize
A unit value that is relative to the em size of the font. The value of the offset or thickness is equal to the offset or thickness value multiplied by the font em size.
Pixel
A unit value that is expressed in pixels.
Trait Implementations§
Source§impl Clone for TextDecorationUnit
impl Clone for TextDecorationUnit
impl Copy for TextDecorationUnit
Source§impl Debug for TextDecorationUnit
impl Debug for TextDecorationUnit
Source§impl Default for TextDecorationUnit
impl Default for TextDecorationUnit
impl Eq for TextDecorationUnit
Source§impl Hash for TextDecorationUnit
impl Hash for TextDecorationUnit
Source§impl MarkupTyped for TextDecorationUnit
impl MarkupTyped for TextDecorationUnit
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for TextDecorationUnit
impl PartialEq for TextDecorationUnit
impl StructuralPartialEq for TextDecorationUnit
Auto Trait Implementations§
impl Freeze for TextDecorationUnit
impl RefUnwindSafe for TextDecorationUnit
impl Send for TextDecorationUnit
impl Sync for TextDecorationUnit
impl Unpin for TextDecorationUnit
impl UnsafeUnpin for TextDecorationUnit
impl UnwindSafe for TextDecorationUnit
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more