ImmutableTextDecoration
struct · ferroui-base · v0.5.0
struct ImmutableTextDecoration
An immutable representation of a text decoration.
Members
new
fn new(location: TextDecorationLocation, pen: ImmutablePen, pen_thickness_unit: TextDecorationUnit, pen_offset: f64, pen_offset_unit: TextDecorationUnit) -> ImmutableTextDecoration
Creates a text decoration.
location
fn location(self: &Self) -> TextDecorationLocation
Gets the location.
pen
fn pen(self: &Self) -> &ImmutablePen
Gets the pen.
pen_thickness_unit
fn pen_thickness_unit(self: &Self) -> TextDecorationUnit
Gets the units in which the thickness of the pen is expressed.
pen_offset
fn pen_offset(self: &Self) -> f64
Gets the pen offset.
pen_offset_unit
fn pen_offset_unit(self: &Self) -> TextDecorationUnit
Gets the units in which the pen offset is expressed.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.