pub struct ImmutableTextDecoration { /* private fields */ }Expand description
An immutable representation of a text decoration.
Implementations§
Source§impl ImmutableTextDecoration
impl ImmutableTextDecoration
Sourcepub fn new(
location: TextDecorationLocation,
pen: ImmutablePen,
pen_thickness_unit: TextDecorationUnit,
pen_offset: f64,
pen_offset_unit: TextDecorationUnit,
) -> ImmutableTextDecoration
pub fn new( location: TextDecorationLocation, pen: ImmutablePen, pen_thickness_unit: TextDecorationUnit, pen_offset: f64, pen_offset_unit: TextDecorationUnit, ) -> ImmutableTextDecoration
Creates a text decoration.
Sourcepub fn location(&self) -> TextDecorationLocation
pub fn location(&self) -> TextDecorationLocation
Gets the location.
Sourcepub fn pen(&self) -> &ImmutablePen
pub fn pen(&self) -> &ImmutablePen
Gets the pen.
Sourcepub fn pen_thickness_unit(&self) -> TextDecorationUnit
pub fn pen_thickness_unit(&self) -> TextDecorationUnit
Gets the units in which the thickness of the pen is expressed.
Sourcepub fn pen_offset(&self) -> f64
pub fn pen_offset(&self) -> f64
Gets the pen offset.
Sourcepub fn pen_offset_unit(&self) -> TextDecorationUnit
pub fn pen_offset_unit(&self) -> TextDecorationUnit
Gets the units in which the pen offset is expressed.
Trait Implementations§
Source§impl Clone for ImmutableTextDecoration
impl Clone for ImmutableTextDecoration
Auto Trait Implementations§
impl !Freeze for ImmutableTextDecoration
impl !RefUnwindSafe for ImmutableTextDecoration
impl !Send for ImmutableTextDecoration
impl !Sync for ImmutableTextDecoration
impl !UnwindSafe for ImmutableTextDecoration
impl Unpin for ImmutableTextDecoration
impl UnsafeUnpin for ImmutableTextDecoration
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
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