FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ProgressRingTemplateSettings

    struct · ferroui-controls · v0.5.0

    struct ProgressRingTemplateSettings
    

    The values of the template of a ProgressRing that WinUI keeps for the templates of the earlier ProgressRing of Windows (read-only): the diameter and the offset of its ellipses and the side of the ring, from the actual width of the ring.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ProgressRingTemplateSettings>
    

    Returns a strong reference to this object.

    Source

    ellipse_diameter_property

    fn ellipse_diameter_property() -> &'static DirectProperty<ProgressRingTemplateSettings, f64>
    

    Defines the EllipseDiameter property (read-only).

    Source

    ellipse_offset_property

    fn ellipse_offset_property() -> &'static DirectProperty<ProgressRingTemplateSettings, Thickness>
    

    Defines the EllipseOffset property (read-only).

    Source

    max_side_length_property

    fn max_side_length_property() -> &'static DirectProperty<ProgressRingTemplateSettings, f64>
    

    Defines the MaxSideLength property (read-only).

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the settings of a ring.

    Source

    ellipse_diameter

    fn ellipse_diameter(self: &Self) -> f64
    

    Gets the diameter of the ellipses: a tenth of the width, one more up to a width of 40.

    Source

    ellipse_offset

    fn ellipse_offset(self: &Self) -> Thickness
    

    Gets the offset of the ellipses: half the width less their diameter, at the top.

    Source

    max_side_length

    fn max_side_length(self: &Self) -> f64
    

    Gets the side of the ring: its width.

    Source

    Trait implementations

    Availability

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