# MaterialAppBar

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

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

```rust
struct MaterialAppBar
```

Place this bar above its `ScrollSource` in an Auto,* grid. Navigation and Actions are
ordinary controls: commands, keyboard focus and automation remain their own.
The scroll source is weak. A drag consumes app-bar pre-scroll, then child scroll,
then leftover app-bar post-scroll; horizontal gestures remain with the child.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`title_property`](#function-title_property)
- [`subtitle_property`](#function-subtitle_property)
- [`navigation_property`](#function-navigation_property)
- [`actions_property`](#function-actions_property)
- [`size_variant_property`](#function-size_variant_property)
- [`scroll_behavior_property`](#function-scroll_behavior_property)
- [`scroll_source_property`](#function-scroll_source_property)
- [`collapsed_height_property`](#function-collapsed_height_property)
- [`expanded_height_property`](#function-expanded_height_property)
- [`center_title_property`](#function-center_title_property)
- [`safe_insets_property`](#function-safe_insets_property)
- [`scrolled_background_property`](#function-scrolled_background_property)
- [`can_scroll_property`](#function-can_scroll_property)
- [`is_snap_enabled_property`](#function-is_snap_enabled_property)
- [`reduced_motion_property`](#function-reduced_motion_property)
- [`motion_scheme_property`](#function-motion_scheme_property)
- [`height_offset_property`](#function-height_offset_property)
- [`collapsed_fraction_property`](#function-collapsed_fraction_property)
- [`overlapped_fraction_property`](#function-overlapped_fraction_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`title`](#function-title)
- [`set_title`](#function-set_title)
- [`subtitle`](#function-subtitle)
- [`set_subtitle`](#function-set_subtitle)
- [`navigation`](#function-navigation)
- [`set_navigation`](#function-set_navigation)
- [`actions`](#function-actions)
- [`set_actions`](#function-set_actions)
- [`size_variant`](#function-size_variant)
- [`set_size_variant`](#function-set_size_variant)
- [`scroll_behavior`](#function-scroll_behavior)
- [`set_scroll_behavior`](#function-set_scroll_behavior)
- [`scroll_source`](#function-scroll_source)
- [`set_scroll_source`](#function-set_scroll_source)
- [`collapsed_height`](#function-collapsed_height)
- [`set_collapsed_height`](#function-set_collapsed_height)
- [`expanded_height`](#function-expanded_height)
- [`set_expanded_height`](#function-set_expanded_height)
- [`center_title`](#function-center_title)
- [`set_center_title`](#function-set_center_title)
- [`safe_insets`](#function-safe_insets)
- [`set_safe_insets`](#function-set_safe_insets)
- [`scrolled_background`](#function-scrolled_background)
- [`set_scrolled_background`](#function-set_scrolled_background)
- [`can_scroll`](#function-can_scroll)
- [`set_can_scroll`](#function-set_can_scroll)
- [`is_snap_enabled`](#function-is_snap_enabled)
- [`set_is_snap_enabled`](#function-set_is_snap_enabled)
- [`reduced_motion`](#function-reduced_motion)
- [`set_reduced_motion`](#function-set_reduced_motion)
- [`motion_scheme`](#function-motion_scheme)
- [`set_motion_scheme`](#function-set_motion_scheme)
- [`state`](#function-state)
- [`height_offset`](#function-height_offset)
- [`collapsed_fraction`](#function-collapsed_fraction)
- [`overlapped_fraction`](#function-overlapped_fraction)
- [`is_animating`](#function-is_animating)
- [`set_height_offset`](#function-set_height_offset)
- [`restore_state`](#function-restore_state)
- [`expand`](#function-expand)
- [`collapse`](#function-collapse)
- [`pre_scroll`](#function-pre_scroll)
- [`post_scroll`](#function-post_scroll)
- [`settle`](#function-settle)
- [`scroll_content_by`](#function-scroll_content_by)

<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/app_bar.rs#L128)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### title_property

```rust
fn title_property() -> &'static StyledProperty<Option<String>>
```



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

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

### subtitle_property

```rust
fn subtitle_property() -> &'static StyledProperty<Option<String>>
```



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

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

### navigation_property

```rust
fn navigation_property() -> &'static StyledProperty<Option<BoxedValue>>
```



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

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

### actions_property

```rust
fn actions_property() -> &'static StyledProperty<Option<BoxedValue>>
```



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

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

### size_variant_property

```rust
fn size_variant_property() -> &'static StyledProperty<MaterialAppBarSize>
```



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

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

### scroll_behavior_property

```rust
fn scroll_behavior_property() -> &'static StyledProperty<MaterialAppBarScrollBehavior>
```



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

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

### scroll_source_property

```rust
fn scroll_source_property() -> &'static StyledProperty<Option<ElementRef<ScrollViewer>>>
```



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

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

### collapsed_height_property

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



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

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

### expanded_height_property

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

NaN selects the source-defined height for the variant and subtitle presence.

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

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

### center_title_property

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



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

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

### safe_insets_property

```rust
fn safe_insets_property() -> &'static StyledProperty<Thickness>
```



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

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

### scrolled_background_property

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



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

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

### can_scroll_property

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



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

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

### is_snap_enabled_property

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



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

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

### reduced_motion_property

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



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

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

### motion_scheme_property

```rust
fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
```



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

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

### height_offset_property

```rust
fn height_offset_property() -> &'static DirectProperty<MaterialAppBar, f64>
```



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

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

### collapsed_fraction_property

```rust
fn collapsed_fraction_property() -> &'static DirectProperty<MaterialAppBar, f64>
```



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

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

### overlapped_fraction_property

```rust
fn overlapped_fraction_property() -> &'static DirectProperty<MaterialAppBar, f64>
```



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

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

### construct

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



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

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

### new

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



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

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

### title

```rust
fn title(self: &Self) -> Option<String>
```



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

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

### set_title

```rust
fn set_title(self: &Self, value: Option<String>)
```



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

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

### subtitle

```rust
fn subtitle(self: &Self) -> Option<String>
```



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

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

### set_subtitle

```rust
fn set_subtitle(self: &Self, value: Option<String>)
```



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

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

### navigation

```rust
fn navigation(self: &Self) -> Option<BoxedValue>
```



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

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

### set_navigation

```rust
fn set_navigation(self: &Self, value: Option<BoxedValue>)
```



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

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

### actions

```rust
fn actions(self: &Self) -> Option<BoxedValue>
```



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

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

### set_actions

```rust
fn set_actions(self: &Self, value: Option<BoxedValue>)
```



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

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

### size_variant

```rust
fn size_variant(self: &Self) -> MaterialAppBarSize
```



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

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

### set_size_variant

```rust
fn set_size_variant(self: &Self, value: MaterialAppBarSize)
```



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

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

### scroll_behavior

```rust
fn scroll_behavior(self: &Self) -> MaterialAppBarScrollBehavior
```



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

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

### set_scroll_behavior

```rust
fn set_scroll_behavior(self: &Self, value: MaterialAppBarScrollBehavior)
```



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

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

### scroll_source

```rust
fn scroll_source(self: &Self) -> Option<Ref<ScrollViewer>>
```



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

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

### set_scroll_source

```rust
fn set_scroll_source(self: &Self, value: Option<Ref<ScrollViewer>>)
```



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

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

### collapsed_height

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



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

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

### set_collapsed_height

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



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

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

### expanded_height

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



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

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

### set_expanded_height

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



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

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

### center_title

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



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

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

### set_center_title

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



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

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

### safe_insets

```rust
fn safe_insets(self: &Self) -> Thickness
```



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

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

### set_safe_insets

```rust
fn set_safe_insets(self: &Self, value: Thickness)
```



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

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

### scrolled_background

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



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

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

### set_scrolled_background

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



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

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

### can_scroll

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



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

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

### set_can_scroll

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



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

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

### is_snap_enabled

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



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

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

### set_is_snap_enabled

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



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

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

### reduced_motion

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



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

<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/app_bar.rs#L434)

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

### motion_scheme

```rust
fn motion_scheme(self: &Self) -> MaterialMotionScheme
```



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

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

### set_motion_scheme

```rust
fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
```



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

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

### state

```rust
fn state(self: &Self) -> MaterialAppBarState
```



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

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

### height_offset

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



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

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

### collapsed_fraction

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



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

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

### overlapped_fraction

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



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

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

### is_animating

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



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

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

### set_height_offset

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



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

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

### restore_state

```rust
fn restore_state(self: &Self, value: MaterialAppBarState)
```



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

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

### expand

```rust
fn expand(self: &Self)
```



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

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

### collapse

```rust
fn collapse(self: &Self)
```



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

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

### pre_scroll

```rust
fn pre_scroll(self: &Self, available_y: f64) -> f64
```

For a custom nested-scroll container. Units are dp; upward finger movement is negative.

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

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

### post_scroll

```rust
fn post_scroll(self: &Self, consumed_y: f64, available_y: f64) -> f64
```



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

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

### settle

```rust
fn settle(self: &Self, velocity_y: f64)
```

Settles after a user scroll/fling, using native spline decay then DefaultEffects snap.

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

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

### scroll_content_by

```rust
fn scroll_content_by(self: &Self, delta_y: f64) -> f64
```

Runs the native pre/child/post ordering against the configured physical ScrollViewer.

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

## 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>`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<MaterialAppBar>`](/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/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- `Drop`

## Availability

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