# ScreenOrientation

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/platform/enum-screenorientation/

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

```rust
enum ScreenOrientation
```

Describes the orientation of a screen.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/screen.rs#L11)

## Members

- [`None`](#variant-none)
- [`Landscape`](#variant-landscape)
- [`Portrait`](#variant-portrait)
- [`LandscapeFlipped`](#variant-landscapeflipped)
- [`PortraitFlipped`](#variant-portraitflipped)

<a id="variant-none"></a>

### None

```rust
None = 0
```

No screen orientation is specified.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/screen.rs#L14)

<a id="variant-landscape"></a>

### Landscape

```rust
Landscape = 1
```

Specifies that the monitor is oriented in landscape mode where the
width of the screen viewing area is greater than the height.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/screen.rs#L18)

<a id="variant-portrait"></a>

### Portrait

```rust
Portrait = 2
```

Specifies that the monitor rotated 90 degrees in the clockwise
direction to orient the screen in portrait mode where the height of
the screen viewing area is greater than the width.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/screen.rs#L23)

<a id="variant-landscapeflipped"></a>

### LandscapeFlipped

```rust
LandscapeFlipped = 4
```

Specifies that the monitor rotated another 90 degrees in the
clockwise direction (to equal 180 degrees) to orient the screen in
landscape mode where the width of the screen viewing area is greater
than the height. This landscape mode is flipped 180 degrees from the
landscape mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/screen.rs#L30)

<a id="variant-portraitflipped"></a>

### PortraitFlipped

```rust
PortraitFlipped = 8
```

Specifies that the monitor rotated another 90 degrees in the
clockwise direction (to equal 270 degrees) to orient the screen in
portrait mode where the height of the screen viewing area is greater
than the width. This portrait mode is flipped 180 degrees from the
portrait mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/screen.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`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`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`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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