# PlatformFeedback

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

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

```rust
struct PlatformFeedback
```

Defines the `FeedbackType` attached property: the kind of audible or
haptic feedback an input element gives for user interactions.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`feedback_type_property`](#function-feedback_type_property)
- [`set_feedback_type`](#function-set_feedback_type)
- [`get_feedback_type`](#function-get_feedback_type)

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

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

### feedback_type_property

```rust
fn feedback_type_property() -> &'static AttachedProperty<FeedbackType>
```

Defines the `FeedbackType` attached property.

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

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

### set_feedback_type

```rust
fn set_feedback_type(control: &InputElement, feedback_type: FeedbackType)
```

Sets the value of the attached `FeedbackType` property.

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

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

### get_feedback_type

```rust
fn get_feedback_type(control: &InputElement) -> FeedbackType
```

Gets the value of the attached `FeedbackType` property.

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

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