CornerRadiusToThicknessConverter
struct · ferroui-themes-macos · v0.5.0
struct CornerRadiusToThicknessConverter
Converts a corner radius to a thickness whose sides are corners of the radius, chosen by the conversion kind and multiplied by the multiplier.
Members
new
fn new() -> Self
Creates a converter of the default kind (FilterLeftAndRightFromTop) with the multiplier 1.
conversion_kind
fn conversion_kind(self: &Self) -> CornerRadiusToThicknessConverterKind
Gets which corners become which sides of the thickness.
set_conversion_kind
fn set_conversion_kind(self: &Self, value: CornerRadiusToThicknessConverterKind)
Sets which corners become which sides of the thickness.
multiplier
fn multiplier(self: &Self) -> f64
Gets the factor every side of the thickness is multiplied by.
set_multiplier
fn set_multiplier(self: &Self, value: f64)
Sets the factor every side of the thickness is multiplied by.
convert_radius
fn convert_radius(radius: CornerRadius, kind: CornerRadiusToThicknessConverterKind, multiplier: f64) -> Thickness
The thickness of a corner radius for a conversion kind and a multiplier (the Convert
overload of WinUI that takes the radius, the kind and the multiplier).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherDefaultPartialEqIValueConverterMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.