FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CornerRadiusToThicknessConverter

    struct · ferroui-themes-material · 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.

    View source

    Members

    new

    fn new() -> Self
    

    Creates a converter of the default kind (FilterLeftAndRightFromTop) with the multiplier 1.

    Source

    conversion_kind

    fn conversion_kind(self: &Self) -> CornerRadiusToThicknessConverterKind
    

    Gets which corners become which sides of the thickness.

    Source

    set_conversion_kind

    fn set_conversion_kind(self: &Self, value: CornerRadiusToThicknessConverterKind)
    

    Sets which corners become which sides of the thickness.

    Source

    multiplier

    fn multiplier(self: &Self) -> f64
    

    Gets the factor every side of the thickness is multiplied by.

    Source

    set_multiplier

    fn set_multiplier(self: &Self, value: f64)
    

    Sets the factor every side of the thickness is multiplied by.

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • CastableFrom<ST, Uninit, Uninit>
    • CastableFrom<ST, Initialized, Initialized>
    • Read<Exclusive, BecauseExclusive>
    • Default
    • PartialEq
    • IValueConverter
    • MarkupTyped

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.