# frame_layout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-controls/function-frame_layout/

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

```rust
fn frame_layout(frame: &FrameMetadata, bounds: ferroui_base::Size, stretch: ferroui_base::media::Stretch) -> Option<FrameLayout>
```

One affine mapping shared by texture sampling and QR overlays. Crop-to-fill
content may extend outside the viewport; clipping never replaces this rect.

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

## Availability

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