TextDecoration
struct · ferroui-base · v0.5.0
struct TextDecoration
Represents a text decoration, which is a visual ornamentation that is added to text (such as an underline).
Members
TYPEto_reflocation_propertystroke_propertystroke_thickness_unit_propertystroke_dash_array_propertystroke_dash_offset_propertystroke_thickness_propertystroke_line_cap_propertystroke_offset_propertystroke_offset_unit_propertyconstructnewlocationset_locationstrokeset_strokestroke_thickness_unitset_stroke_thickness_unitstroke_dash_arrayset_stroke_dash_arraystroke_dash_offsetset_stroke_dash_offsetstroke_thicknessset_stroke_thicknessstroke_line_capset_stroke_line_capstroke_offsetset_stroke_offsetstroke_offset_unitset_stroke_offset_unit
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TextDecoration>
Returns a strong reference to this object.
location_property
fn location_property() -> &'static StyledProperty<TextDecorationLocation>
Defines the Location property.
stroke_property
fn stroke_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the Stroke property.
stroke_thickness_unit_property
fn stroke_thickness_unit_property() -> &'static StyledProperty<TextDecorationUnit>
Defines the StrokeThicknessUnit property.
stroke_dash_array_property
fn stroke_dash_array_property() -> &'static StyledProperty<Option<MediaCollection<f64>>>
Defines the StrokeDashArray property.
stroke_dash_offset_property
fn stroke_dash_offset_property() -> &'static StyledProperty<f64>
Defines the StrokeDashOffset property.
stroke_thickness_property
fn stroke_thickness_property() -> &'static StyledProperty<f64>
Defines the StrokeThickness property.
stroke_line_cap_property
fn stroke_line_cap_property() -> &'static StyledProperty<PenLineCap>
Defines the StrokeLineCap property.
stroke_offset_property
fn stroke_offset_property() -> &'static StyledProperty<f64>
Defines the StrokeOffset property.
stroke_offset_unit_property
fn stroke_offset_unit_property() -> &'static StyledProperty<TextDecorationUnit>
Defines the StrokeOffsetUnit property.
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
Creates a text decoration with default values (an underline).
location
fn location(self: &Self) -> TextDecorationLocation
Gets the location.
set_location
fn set_location(self: &Self, value: TextDecorationLocation)
Sets the location.
stroke
fn stroke(self: &Self) -> Option<Rc<dyn IBrush>>
Gets the brush that specifies how the text decoration is painted.
set_stroke
fn set_stroke(self: &Self, value: Option<Rc<dyn IBrush>>)
Sets the brush that specifies how the text decoration is painted.
stroke_thickness_unit
fn stroke_thickness_unit(self: &Self) -> TextDecorationUnit
Gets the units in which the thickness of the text decoration is expressed.
set_stroke_thickness_unit
fn set_stroke_thickness_unit(self: &Self, value: TextDecorationUnit)
Sets the units in which the thickness of the text decoration is expressed.
stroke_dash_array
fn stroke_dash_array(self: &Self) -> Option<MediaCollection<f64>>
Gets a collection of values that indicate the pattern of dashes and gaps that is used to draw the text decoration.
set_stroke_dash_array
fn set_stroke_dash_array(self: &Self, value: Option<MediaCollection<f64>>)
Sets a collection of values that indicate the pattern of dashes and gaps that is used to draw the text decoration.
stroke_dash_offset
fn stroke_dash_offset(self: &Self) -> f64
Gets a value that specifies the distance within the dash pattern where a dash begins.
set_stroke_dash_offset
fn set_stroke_dash_offset(self: &Self, value: f64)
Sets a value that specifies the distance within the dash pattern where a dash begins.
stroke_thickness
fn stroke_thickness(self: &Self) -> f64
Gets the thickness of the text decoration.
set_stroke_thickness
fn set_stroke_thickness(self: &Self, value: f64)
Sets the thickness of the text decoration.
stroke_line_cap
fn stroke_line_cap(self: &Self) -> PenLineCap
Gets a value that describes the shape at the ends of a line.
set_stroke_line_cap
fn set_stroke_line_cap(self: &Self, value: PenLineCap)
Sets a value that describes the shape at the ends of a line.
stroke_offset
fn stroke_offset(self: &Self) -> f64
The stroke's offset.
set_stroke_offset
fn set_stroke_offset(self: &Self, value: f64)
Sets the stroke's offset.
stroke_offset_unit
fn stroke_offset_unit(self: &Self) -> TextDecorationUnit
Gets the units in which the offset value is expressed.
set_stroke_offset_unit
fn set_stroke_offset_unit(self: &Self, value: TextDecorationUnit)
Sets the units in which the offset value is expressed.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<TextDecoration>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.