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.
Members
TYPEto_refellipse_diameter_propertyellipse_offset_propertymax_side_length_propertyconstructnewellipse_diameterellipse_offsetmax_side_length
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ProgressRingTemplateSettings>
Returns a strong reference to this object.
ellipse_diameter_property
fn ellipse_diameter_property() -> &'static DirectProperty<ProgressRingTemplateSettings, f64>
Defines the EllipseDiameter property (read-only).
ellipse_offset_property
fn ellipse_offset_property() -> &'static DirectProperty<ProgressRingTemplateSettings, Thickness>
Defines the EllipseOffset property (read-only).
max_side_length_property
fn max_side_length_property() -> &'static DirectProperty<ProgressRingTemplateSettings, f64>
Defines the MaxSideLength property (read-only).
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the settings of a ring.
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.
ellipse_offset
fn ellipse_offset(self: &Self) -> Thickness
Gets the offset of the ellipses: half the width less their diameter, at the top.
max_side_length
fn max_side_length(self: &Self) -> f64
Gets the side of the ring: its width.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<ProgressRingTemplateSettings>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.