# FbDevOutputOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-linuxframebuffer/output/struct-fbdevoutputoptions/

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

```rust
struct FbDevOutputOptions
```

FbDev output options.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Linux/FerroUI.LinuxFramebuffer/output/fb_dev_output_options.rs#L8)

## Members

- [`file_name`](#struct_field-file_name)
- [`pixel_format`](#struct_field-pixel_format)
- [`render_directly_to_mapped_memory`](#struct_field-render_directly_to_mapped_memory)
- [`scaling`](#struct_field-scaling)
- [`use_async_front_buffer_blit`](#struct_field-use_async_front_buffer_blit)

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

### file_name

```rust
file_name: Option<String>
```

The frame buffer device name. Defaults to the value in the
environment variable FRAMEBUFFER, or /dev/fb0 when FRAMEBUFFER is
not set.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Linux/FerroUI.LinuxFramebuffer/output/fb_dev_output_options.rs#L12)

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

### pixel_format

```rust
pixel_format: Option<ferroui_base::platform::PixelFormat>
```

The desired pixel format. When not set the format of the device is
used.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Linux/FerroUI.LinuxFramebuffer/output/fb_dev_output_options.rs#L15)

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

### render_directly_to_mapped_memory

```rust
render_directly_to_mapped_memory: bool
```

Render directly to the mapped memory of the device instead of to a
back buffer that is copied after the vertical sync.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Linux/FerroUI.LinuxFramebuffer/output/fb_dev_output_options.rs#L18)

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

### scaling

```rust
scaling: f64
```

The initial scale factor to use.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Linux/FerroUI.LinuxFramebuffer/output/fb_dev_output_options.rs#L20)

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

### use_async_front_buffer_blit

```rust
use_async_front_buffer_blit: Option<bool>
```

When true, the wait for the vertical sync and the copy that follows
run on a dedicated thread, saving the rendering thread from a
blocking wait. Only has an effect when
`render_directly_to_mapped_memory` is false.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Linux/FerroUI.LinuxFramebuffer/output/fb_dev_output_options.rs#L25)

## 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/)
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`
- `ErasedDestructor`
- `IntoEither`

## Availability

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