# DrmOutputOptions

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

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

```rust
struct DrmOutputOptions
```

DRM Output Options

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

## Members

- [`scaling`](#struct_field-scaling)
- [`orientation`](#struct_field-orientation)
- [`enable_initial_buffer_swapping`](#struct_field-enable_initial_buffer_swapping)
- [`initial_buffer_swapping_color`](#struct_field-initial_buffer_swapping_color)
- [`video_mode`](#struct_field-video_mode)
- [`connector_type_id`](#struct_field-connector_type_id)

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

### scaling

```rust
scaling: f64
```

Scaling factor.
Default: 1.0

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

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

### orientation

```rust
orientation: ferroui_base::platform::SurfaceOrientation
```

The orientation of the screen relative to the frame buffer memory orientation
Default: Normal

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

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

### enable_initial_buffer_swapping

```rust
enable_initial_buffer_swapping: bool
```

If true an two cycle buffer swapping is processed at init.
Default: True

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

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

### initial_buffer_swapping_color

```rust
initial_buffer_swapping_color: ferroui_base::media::Color
```

Color for `enable_initial_buffer_swapping`
Default: R0 G0 B0 A0

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

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

### video_mode

```rust
video_mode: Option<ferroui_base::PixelSize>
```

Specifies the video mode with which the DrmOutput should be created, if it is not found it will fallback to the preferred mode.
If null, the preferred mode will be used.

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

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

### connector_type_id

```rust
connector_type_id: Option<u32>
```

Specifies the connector type ID used with `connector_type`.
If null, the preferred connector type ID will be used.

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

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