FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ProgressBar

    struct · ferroui-controls · v0.5.0

    struct ProgressBar
    

    A control used to indicate the progress of an operation.

    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<ProgressBar>
    

    Returns a strong reference to this object.

    Source

    TEMPLATE_PARTS

    const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
    

    The named parts expected in the control template.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    is_indeterminate_property

    fn is_indeterminate_property() -> &'static StyledProperty<bool>
    

    Defines the IsIndeterminate property.

    Source

    show_progress_text_property

    fn show_progress_text_property() -> &'static StyledProperty<bool>
    

    Defines the ShowProgressText property.

    Source

    progress_text_format_property

    fn progress_text_format_property() -> &'static StyledProperty<String>
    

    Defines the ProgressTextFormat property.

    Source

    orientation_property

    fn orientation_property() -> &'static StyledProperty<Orientation>
    

    Defines the Orientation property.

    Source

    percentage_property

    fn percentage_property() -> &'static DirectProperty<ProgressBar, f64>
    

    Defines the Percentage property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    percentage

    fn percentage(self: &Self) -> f64
    

    The overall percentage complete of the progress.

    This read-only property is automatically calculated using the current Value and the effective range (Maximum - Minimum).

    Source

    template_settings

    fn template_settings(self: &Self) -> Ref<ProgressBarTemplateSettings>
    

    The template settings of the progress bar.

    Source

    is_indeterminate

    fn is_indeterminate(self: &Self) -> bool
    

    Whether the progress bar shows the actual value or a generic, continuous progress indicator (indeterminate state).

    Source

    set_is_indeterminate

    fn set_is_indeterminate(self: &Self, value: bool)
    

    Source

    show_progress_text

    fn show_progress_text(self: &Self) -> bool
    

    Whether progress text will be shown.

    Source

    set_show_progress_text

    fn set_show_progress_text(self: &Self, value: bool)
    

    Source

    progress_text_format

    fn progress_text_format(self: &Self) -> String
    

    The format string applied to the internally calculated progress text before it is shown.

    Source

    set_progress_text_format

    fn set_progress_text_format(self: &Self, value: impl Into<String>)
    

    Source

    orientation

    fn orientation(self: &Self) -> Orientation
    

    The orientation of the progress bar.

    Source

    set_orientation

    fn set_orientation(self: &Self, value: Orientation)
    

    Source

    Trait implementations

    Availability

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