# TrayIconProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-trayiconprops/

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

```rust
trait TrayIconProps: ElementBuilder
```

The properties and routed events of `TrayIcon`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9334)

## Members

- [`command`](#function-command)
- [`command_parameter`](#function-command_parameter)
- [`icons`](#function-icons)
- [`menu`](#function-menu)
- [`icon`](#function-icon)
- [`tool_tip_text`](#function-tool_tip_text)
- [`is_visible`](#function-is_visible)

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

### command

```rust
fn command<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::input::ICommand>>, M>) -> Self
```

Sets `TrayIcon::command_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9336)

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

### command_parameter

```rust
fn command_parameter<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `TrayIcon::command_parameter_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9341)

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

### icons

```rust
fn icons<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<ferroui_controls::TrayIcons>>, M>) -> Self
```

Sets `TrayIcon::icons_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9346)

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

### menu

```rust
fn menu<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_controls::NativeMenu>>, M>) -> Self
```

Sets `TrayIcon::menu_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9351)

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

### icon

```rust
fn icon<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<ferroui_controls::WindowIcon>>, M>) -> Self
```

Sets `TrayIcon::icon_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9356)

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

### tool_tip_text

```rust
fn tool_tip_text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
```

Sets `TrayIcon::tool_tip_text_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9361)

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

### is_visible

```rust
fn is_visible<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `TrayIcon::is_visible_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L9366)

## Trait implementations

- [`TrayIconProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-trayiconprops/)

## Availability

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