# WaylandProperties

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/platform/struct-waylandproperties/

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

```rust
struct WaylandProperties
```

Set of Wayland specific properties and events that allow deeper customization of the
application per platform.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`app_id_property`](#function-app_id_property)
- [`set_app_id`](#function-set_app_id)
- [`get_app_id`](#function-get_app_id)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this type.

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

<a id="function-app_id_property"></a>

### app_id_property

```rust
fn app_id_property() -> &'static AttachedProperty<Option<String>>
```

Defines the `AppId` attached property.

Specifies the application ID (`app_id`) sent to the Wayland compositor via
`xdg_toplevel` for window management, application identification, and window
grouping.

In Wayland environments, client windows do not directly provide their own window
icons. Instead, compositors, docks, and taskbars resolve the application icon,
launcher identity, and notifications by matching the `AppId` against the filename of
the application's installed `.desktop` file (for example, using `org.example.myapp`
to match `org.example.myapp.desktop`).

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

<a id="function-set_app_id"></a>

### set_app_id

```rust
fn set_app_id(obj: &Window, value: Option<String>)
```

Sets the value of the `AppId` attached property of the specified window.

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

<a id="function-get_app_id"></a>

### get_app_id

```rust
fn get_app_id(obj: &Window) -> Option<String>
```

Gets the value of the `AppId` attached property of the specified window.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)

## Availability

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