# FerroNativePlatformOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-native/struct-ferronativeplatformoptions/

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

```rust
struct FerroNativePlatformOptions
```

OSX backend options.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L58)

## Members

- [`rendering_mode`](#struct_field-rendering_mode)
- [`overlay_popups`](#struct_field-overlay_popups)
- [`ferro_native_library_path`](#struct_field-ferro_native_library_path)
- [`app_sandbox_enabled`](#struct_field-app_sandbox_enabled)

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

### rendering_mode

```rust
rendering_mode: Vec<FerroNativeRenderingMode>
```

Gets or sets the rendering modes with fallbacks.
The first element in the list has the highest priority.
The default value is: `FerroNativeRenderingMode::Metal`,
`FerroNativeRenderingMode::OpenGl`,
`FerroNativeRenderingMode::Software`.

If application should work on as wide range of devices as possible,
at least add `FerroNativeRenderingMode::Software` as a fallback
value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L68)

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

### overlay_popups

```rust
overlay_popups: bool
```

Embeds popups to the window when set to true. The default value is
false.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L72)

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

### ferro_native_library_path

```rust
ferro_native_library_path: Option<String>
```

This property should be used in case you want to build the OSX
native part by yourself and make your app run with it. The default
value is `None`: the library linked into the application is used.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L77)

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

### app_sandbox_enabled

```rust
app_sandbox_enabled: bool
```

If you distribute your app in App Store - it should be with sandbox
enabled. This parameter enables the bookmark APIs of storage items,
as well as wrapping all storage related calls in secure context. The
default value is true.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Native/ferro_native_platform_extensions.rs#L83)

## 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`
- `IUnknownImpl`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Default`

## Availability

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