# ProgressBarTemplateSettings

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-progressbartemplatesettings/

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

```rust
struct ProgressBarTemplateSettings
```

Provides calculated values for use with the [`ProgressBar`](/docs/0.5.0/api/ferroui-controls/struct-progressbar/)'s control
theme or template.

This class is NOT intended for general use outside of control templates.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L25)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`container_animation_start_position_property`](#function-container_animation_start_position_property)
- [`container_animation_end_position_property`](#function-container_animation_end_position_property)
- [`container2_animation_start_position_property`](#function-container2_animation_start_position_property)
- [`container2_animation_end_position_property`](#function-container2_animation_end_position_property)
- [`container2_width_property`](#function-container2_width_property)
- [`container_width_property`](#function-container_width_property)
- [`indeterminate_starting_offset_property`](#function-indeterminate_starting_offset_property)
- [`indeterminate_ending_offset_property`](#function-indeterminate_ending_offset_property)
- [`new`](#function-new)
- [`container_width`](#function-container_width)
- [`set_container_width`](#function-set_container_width)
- [`container2_width`](#function-container2_width)
- [`set_container2_width`](#function-set_container2_width)
- [`container_animation_start_position`](#function-container_animation_start_position)
- [`set_container_animation_start_position`](#function-set_container_animation_start_position)
- [`container_animation_end_position`](#function-container_animation_end_position)
- [`set_container_animation_end_position`](#function-set_container_animation_end_position)
- [`container2_animation_start_position`](#function-container2_animation_start_position)
- [`set_container2_animation_start_position`](#function-set_container2_animation_start_position)
- [`container2_animation_end_position`](#function-container2_animation_end_position)
- [`set_container2_animation_end_position`](#function-set_container2_animation_end_position)
- [`indeterminate_starting_offset`](#function-indeterminate_starting_offset)
- [`set_indeterminate_starting_offset`](#function-set_indeterminate_starting_offset)
- [`indeterminate_ending_offset`](#function-indeterminate_ending_offset)
- [`set_indeterminate_ending_offset`](#function-set_indeterminate_ending_offset)

<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.Controls/progress_bar.rs#L37)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L37)

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

### container_animation_start_position_property

```rust
fn container_animation_start_position_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `ContainerAnimationStartPosition` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### container_animation_end_position_property

```rust
fn container_animation_end_position_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `ContainerAnimationEndPosition` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### container2_animation_start_position_property

```rust
fn container2_animation_start_position_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `Container2AnimationStartPosition` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### container2_animation_end_position_property

```rust
fn container2_animation_end_position_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `Container2AnimationEndPosition` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### container2_width_property

```rust
fn container2_width_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `Container2Width` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### container_width_property

```rust
fn container_width_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `ContainerWidth` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### indeterminate_starting_offset_property

```rust
fn indeterminate_starting_offset_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `IndeterminateStartingOffset` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### indeterminate_ending_offset_property

```rust
fn indeterminate_ending_offset_property() -> &'static DirectProperty<ProgressBarTemplateSettings, f64>
```

Defines the `IndeterminateEndingOffset` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L43)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L142)

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

### container_width

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

Used by the fluent theme to define the first indeterminate
indicator's width.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L158)

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

### set_container_width

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L162)

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

### container2_width

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

Used by the fluent theme to define the second indeterminate
indicator's width.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L168)

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

### set_container2_width

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L172)

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

### container_animation_start_position

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

Used by the fluent theme to define the first indeterminate
indicator's start position when animated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L178)

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

### set_container_animation_start_position

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L182)

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

### container_animation_end_position

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

Used by the fluent theme to define the first indeterminate
indicator's end position when animated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L192)

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

### set_container_animation_end_position

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L196)

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

### container2_animation_start_position

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

Used by the fluent theme to define the second indeterminate
indicator's start position when animated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L206)

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

### set_container2_animation_start_position

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L210)

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

### container2_animation_end_position

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

Used by the fluent theme to define the second indeterminate
indicator's end position when animated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L220)

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

### set_container2_animation_end_position

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L224)

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

### indeterminate_starting_offset

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

Used by the simple theme to define the starting point of its
indeterminate animation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L234)

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

### set_indeterminate_starting_offset

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L238)

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

### indeterminate_ending_offset

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

Used by the simple theme to define the ending point of its
indeterminate animation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L248)

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

### set_indeterminate_ending_offset

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/progress_bar.rs#L252)

## 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`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<ProgressBarTemplateSettings>`](/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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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