ProgressBar
struct · ferroui-controls · v0.5.0
struct ProgressBar
A control used to indicate the progress of an operation.
Members
TYPEto_refTEMPLATE_PARTSPSEUDO_CLASSESis_indeterminate_propertyshow_progress_text_propertyprogress_text_format_propertyorientation_propertypercentage_propertyconstructnewpercentagetemplate_settingsis_indeterminateset_is_indeterminateshow_progress_textset_show_progress_textprogress_text_formatset_progress_text_formatorientationset_orientation
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ProgressBar>
Returns a strong reference to this object.
TEMPLATE_PARTS
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
The named parts expected in the control template.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
is_indeterminate_property
fn is_indeterminate_property() -> &'static StyledProperty<bool>
Defines the IsIndeterminate property.
show_progress_text_property
fn show_progress_text_property() -> &'static StyledProperty<bool>
Defines the ShowProgressText property.
progress_text_format_property
fn progress_text_format_property() -> &'static StyledProperty<String>
Defines the ProgressTextFormat property.
orientation_property
fn orientation_property() -> &'static StyledProperty<Orientation>
Defines the Orientation property.
percentage_property
fn percentage_property() -> &'static DirectProperty<ProgressBar, f64>
Defines the Percentage property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
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).
template_settings
fn template_settings(self: &Self) -> Ref<ProgressBarTemplateSettings>
The template settings of the progress bar.
is_indeterminate
fn is_indeterminate(self: &Self) -> bool
Whether the progress bar shows the actual value or a generic, continuous progress indicator (indeterminate state).
set_is_indeterminate
fn set_is_indeterminate(self: &Self, value: bool)
show_progress_text
fn show_progress_text(self: &Self) -> bool
Whether progress text will be shown.
set_show_progress_text
fn set_show_progress_text(self: &Self, value: bool)
progress_text_format
fn progress_text_format(self: &Self) -> String
The format string applied to the internally calculated progress text before it is shown.
set_progress_text_format
fn set_progress_text_format(self: &Self, value: impl Into<String>)
orientation
fn orientation(self: &Self) -> Orientation
The orientation of the progress bar.
set_orientation
fn set_orientation(self: &Self, value: Orientation)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ProgressBar>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplFerroObjectImplLayoutableImplTemplatedControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.