# MaterialSheetAnchors

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

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

```rust
struct MaterialSheetAnchors
```

Sheet top coordinates in a viewport, expressed in device-independent pixels.

The partial and expanded coordinates may be equal. Do not use a map keyed by
floating-point position to represent the semantic states: it loses information.

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

## Members

- [`hidden`](#struct_field-hidden)
- [`partially_expanded`](#struct_field-partially_expanded)
- [`expanded`](#struct_field-expanded)
- [`POSITIONAL_THRESHOLD`](#assoc_const-positional_threshold)
- [`VELOCITY_THRESHOLD`](#assoc_const-velocity_threshold)
- [`VELOCITY_DAMPING_ZONE`](#assoc_const-velocity_damping_zone)
- [`new`](#function-new)
- [`offset`](#function-offset)
- [`partial_matches_expanded`](#function-partial_matches_expanded)
- [`reconcile_target`](#function-reconcile_target)
- [`settle_target`](#function-settle_target)
- [`damp_velocity`](#function-damp_velocity)

<a id="struct_field-hidden"></a>

### hidden

```rust
hidden: f64
```



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

<a id="struct_field-partially_expanded"></a>

### partially_expanded

```rust
partially_expanded: f64
```



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

<a id="struct_field-expanded"></a>

### expanded

```rust
expanded: f64
```



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

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

### POSITIONAL_THRESHOLD

```rust
const POSITIONAL_THRESHOLD: f64
```



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

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

### VELOCITY_THRESHOLD

```rust
const VELOCITY_THRESHOLD: f64
```



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

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

### VELOCITY_DAMPING_ZONE

```rust
const VELOCITY_DAMPING_ZONE: f64
```



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

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

### new

```rust
fn new(viewport_height: f64, sheet_height: f64) -> Self
```

Recomputes anchors for the current usable viewport and measured sheet.
Nonfinite dimensions are treated as zero; oversized sheets fill the viewport.

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

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

### offset

```rust
fn offset(self: Self, state: MaterialSheetState) -> f64
```



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

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

### partial_matches_expanded

```rust
fn partial_matches_expanded(self: Self) -> bool
```



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

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

### reconcile_target

```rust
fn reconcile_target(self: Self, previous: Self, target: MaterialSheetState, partial_enabled: bool) -> MaterialSheetState
```

Preserves the fully visible short-sheet state when its content grows.

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

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

### settle_target

```rust
fn settle_target(self: Self, current: MaterialSheetState, offset: f64, velocity: f64, partial_enabled: bool, allow_hidden: bool) -> MaterialSheetState
```

Chooses an adjacent legal anchor using the source's 56dp / 125dp/s thresholds.
A high-velocity fling follows its direction; a slow drag must cross the
positional threshold from the last settled state. Large drags can traverse
multiple anchors. `allow_hidden=false` is useful for persistent sheets.

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

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

### damp_velocity

```rust
fn damp_velocity(self: Self, offset: f64, velocity: f64, maximum_velocity: f64) -> f64
```

Damps downward fling energy in the source's 125dp hidden-boundary zone.
The source preserves the fling threshold once it has already been crossed.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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