# MaterialProgressIndicator

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/struct-materialprogressindicator/

**struct** · [`ferroui-themes-material`](/docs/0.5.0/api/ferroui-themes-material/) · v0.5.0

```rust
struct MaterialProgressIndicator
```

Renderer used by the Material ProgressBar control themes. The enclosing
ProgressBar owns range semantics and automation; this noninteractive visual
consumes its percentage and state without changing that control's behavior.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L40)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`percentage_property`](#function-percentage_property)
- [`is_indeterminate_property`](#function-is_indeterminate_property)
- [`is_circular_property`](#function-is_circular_property)
- [`is_wavy_property`](#function-is_wavy_property)
- [`show_stop_indicator_property`](#function-show_stop_indicator_property)
- [`reduced_motion_property`](#function-reduced_motion_property)
- [`orientation_property`](#function-orientation_property)
- [`stroke_thickness_property`](#function-stroke_thickness_property)
- [`gap_size_property`](#function-gap_size_property)
- [`active_brush_property`](#function-active_brush_property)
- [`track_brush_property`](#function-track_brush_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`percentage`](#function-percentage)
- [`set_percentage`](#function-set_percentage)
- [`is_indeterminate`](#function-is_indeterminate)
- [`set_is_indeterminate`](#function-set_is_indeterminate)
- [`is_circular`](#function-is_circular)
- [`set_is_circular`](#function-set_is_circular)
- [`is_wavy`](#function-is_wavy)
- [`set_is_wavy`](#function-set_is_wavy)
- [`show_stop_indicator`](#function-show_stop_indicator)
- [`set_show_stop_indicator`](#function-set_show_stop_indicator)
- [`reduced_motion`](#function-reduced_motion)
- [`set_reduced_motion`](#function-set_reduced_motion)
- [`orientation`](#function-orientation)
- [`set_orientation`](#function-set_orientation)
- [`stroke_thickness`](#function-stroke_thickness)
- [`set_stroke_thickness`](#function-set_stroke_thickness)
- [`gap_size`](#function-gap_size)
- [`set_gap_size`](#function-set_gap_size)
- [`active_brush`](#function-active_brush)
- [`set_active_brush`](#function-set_active_brush)
- [`track_brush`](#function-track_brush)
- [`set_track_brush`](#function-set_track_brush)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L52)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<MaterialProgressIndicator>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L52)

<a id="function-percentage_property"></a>

### percentage_property

```rust
fn percentage_property() -> &'static StyledProperty<f64>
```

Progress percentage, clamped to 0–100 when rendered.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-is_indeterminate_property"></a>

### is_indeterminate_property

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

Whether progress is unknown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-is_circular_property"></a>

### is_circular_property

```rust
fn is_circular_property() -> &'static StyledProperty<bool>
```

Use a circular rather than linear indicator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-is_wavy_property"></a>

### is_wavy_property

```rust
fn is_wavy_property() -> &'static StyledProperty<bool>
```

Use the expressive wave form.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-show_stop_indicator_property"></a>

### show_stop_indicator_property

```rust
fn show_stop_indicator_property() -> &'static StyledProperty<bool>
```

Draw the required terminal stop dot on a linear determinate track.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-reduced_motion_property"></a>

### reduced_motion_property

```rust
fn reduced_motion_property() -> &'static StyledProperty<bool>
```

Stop all continuous animation and display a static indeterminate state.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-orientation_property"></a>

### orientation_property

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

Direction of the linear indicator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-stroke_thickness_property"></a>

### stroke_thickness_property

```rust
fn stroke_thickness_property() -> &'static StyledProperty<f64>
```

Thickness of the active and inactive strokes in device independent pixels.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-gap_size_property"></a>

### gap_size_property

```rust
fn gap_size_property() -> &'static StyledProperty<f64>
```

Visible space between the active and inactive tracks.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-active_brush_property"></a>

### active_brush_property

```rust
fn active_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Active indicator brush.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-track_brush_property"></a>

### track_brush_property

```rust
fn track_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Inactive track brush.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L159)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L213)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L227)

<a id="function-percentage"></a>

### percentage

```rust
fn percentage(self: &Self) -> f64
```

Progress percentage, clamped to 0–100 when rendered.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L233)

<a id="function-set_percentage"></a>

### set_percentage

```rust
fn set_percentage(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L236)

<a id="function-is_indeterminate"></a>

### is_indeterminate

```rust
fn is_indeterminate(self: &Self) -> bool
```

Whether progress is unknown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L240)

<a id="function-set_is_indeterminate"></a>

### set_is_indeterminate

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L243)

<a id="function-is_circular"></a>

### is_circular

```rust
fn is_circular(self: &Self) -> bool
```

Use a circular rather than linear indicator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L247)

<a id="function-set_is_circular"></a>

### set_is_circular

```rust
fn set_is_circular(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L250)

<a id="function-is_wavy"></a>

### is_wavy

```rust
fn is_wavy(self: &Self) -> bool
```

Use the expressive wave form.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L254)

<a id="function-set_is_wavy"></a>

### set_is_wavy

```rust
fn set_is_wavy(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L257)

<a id="function-show_stop_indicator"></a>

### show_stop_indicator

```rust
fn show_stop_indicator(self: &Self) -> bool
```

Draw the required terminal stop dot on a linear determinate track.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L261)

<a id="function-set_show_stop_indicator"></a>

### set_show_stop_indicator

```rust
fn set_show_stop_indicator(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L264)

<a id="function-reduced_motion"></a>

### reduced_motion

```rust
fn reduced_motion(self: &Self) -> bool
```

Stop all continuous animation and display a static indeterminate state.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L268)

<a id="function-set_reduced_motion"></a>

### set_reduced_motion

```rust
fn set_reduced_motion(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L271)

<a id="function-orientation"></a>

### orientation

```rust
fn orientation(self: &Self) -> Orientation
```

Direction of the linear indicator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L275)

<a id="function-set_orientation"></a>

### set_orientation

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L278)

<a id="function-stroke_thickness"></a>

### stroke_thickness

```rust
fn stroke_thickness(self: &Self) -> f64
```

Thickness of the active and inactive strokes in device independent pixels.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L282)

<a id="function-set_stroke_thickness"></a>

### set_stroke_thickness

```rust
fn set_stroke_thickness(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L285)

<a id="function-gap_size"></a>

### gap_size

```rust
fn gap_size(self: &Self) -> f64
```

Visible space between the active and inactive tracks.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L289)

<a id="function-set_gap_size"></a>

### set_gap_size

```rust
fn set_gap_size(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L292)

<a id="function-active_brush"></a>

### active_brush

```rust
fn active_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```

Active indicator brush.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L296)

<a id="function-set_active_brush"></a>

### set_active_brush

```rust
fn set_active_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L299)

<a id="function-track_brush"></a>

### track_brush

```rust
fn track_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```

Inactive track brush.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L303)

<a id="function-set_track_brush"></a>

### set_track_brush

```rust
fn set_track_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/progress_indicator.rs#L306)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<MaterialProgressIndicator>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- `Drop`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
