# ToolTip

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

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

```rust
struct ToolTip
```

A control which pops up a hint when a control is hovered.

You will probably not want to create a [`ToolTip`](/docs/0.5.0/api/ferroui-controls/struct-tooltip/) control directly: if
added to the tree it will act as a simple [`ContentControl`](/docs/0.5.0/api/ferroui-controls/struct-contentcontrol/) styled to
look like a tooltip. To add a tooltip to a control, use the `Tip`
attached property (`ToolTip::tip_property`), assigning the content
that you want displayed.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`PSEUDO_CLASSES`](#assoc_const-pseudo_classes)
- [`tip_property`](#function-tip_property)
- [`is_open_property`](#function-is_open_property)
- [`placement_property`](#function-placement_property)
- [`horizontal_offset_property`](#function-horizontal_offset_property)
- [`vertical_offset_property`](#function-vertical_offset_property)
- [`custom_popup_placement_callback_property`](#function-custom_popup_placement_callback_property)
- [`show_delay_property`](#function-show_delay_property)
- [`between_show_delay_property`](#function-between_show_delay_property)
- [`show_on_disabled_property`](#function-show_on_disabled_property)
- [`service_enabled_property`](#function-service_enabled_property)
- [`should_use_overlay_layer_property`](#function-should_use_overlay_layer_property)
- [`tool_tip_property`](#function-tool_tip_property)
- [`tool_tip_opening_event`](#function-tool_tip_opening_event)
- [`tool_tip_closing_event`](#function-tool_tip_closing_event)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`get_tip`](#function-get_tip)
- [`set_tip`](#function-set_tip)
- [`get_is_open`](#function-get_is_open)
- [`set_is_open`](#function-set_is_open)
- [`get_placement`](#function-get_placement)
- [`set_placement`](#function-set_placement)
- [`get_horizontal_offset`](#function-get_horizontal_offset)
- [`set_horizontal_offset`](#function-set_horizontal_offset)
- [`get_vertical_offset`](#function-get_vertical_offset)
- [`set_vertical_offset`](#function-set_vertical_offset)
- [`get_show_delay`](#function-get_show_delay)
- [`set_show_delay`](#function-set_show_delay)
- [`get_between_show_delay`](#function-get_between_show_delay)
- [`set_between_show_delay`](#function-set_between_show_delay)
- [`get_show_on_disabled`](#function-get_show_on_disabled)
- [`set_show_on_disabled`](#function-set_show_on_disabled)
- [`get_service_enabled`](#function-get_service_enabled)
- [`set_service_enabled`](#function-set_service_enabled)
- [`get_should_use_overlay_layer`](#function-get_should_use_overlay_layer)
- [`set_should_use_overlay_layer`](#function-set_should_use_overlay_layer)
- [`add_tool_tip_opening_handler`](#function-add_tool_tip_opening_handler)
- [`remove_tool_tip_opening_handler`](#function-remove_tool_tip_opening_handler)
- [`add_tool_tip_closing_handler`](#function-add_tool_tip_closing_handler)
- [`remove_tool_tip_closing_handler`](#function-remove_tool_tip_closing_handler)
- [`get_custom_popup_placement_callback`](#function-get_custom_popup_placement_callback)
- [`set_custom_popup_placement_callback`](#function-set_custom_popup_placement_callback)
- [`adorned_control`](#function-adorned_control)
- [`closed`](#function-closed)
- [`popup_host`](#function-popup_host)
- [`popup_host_changed`](#function-popup_host_changed)
- [`to_popup_host_provider`](#function-to_popup_host_provider)

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

### TYPE

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

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L42)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<ToolTip>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L42)

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

### PSEUDO_CLASSES

```rust
const PSEUDO_CLASSES: PseudoClassesAttribute
```

The pseudoclasses set by the class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L64)

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

### tip_property

```rust
fn tip_property() -> &'static AttachedProperty<Option<BoxedValue>>
```

Defines the `ToolTip.Tip` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### is_open_property

```rust
fn is_open_property() -> &'static AttachedProperty<bool>
```

Defines the `ToolTip.IsOpen` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### placement_property

```rust
fn placement_property() -> &'static AttachedProperty<PlacementMode>
```

Defines the `ToolTip.Placement` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### horizontal_offset_property

```rust
fn horizontal_offset_property() -> &'static AttachedProperty<f64>
```

Defines the `ToolTip.HorizontalOffset` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### vertical_offset_property

```rust
fn vertical_offset_property() -> &'static AttachedProperty<f64>
```

Defines the `ToolTip.VerticalOffset` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### custom_popup_placement_callback_property

```rust
fn custom_popup_placement_callback_property() -> &'static AttachedProperty<Option<CustomPopupPlacementCallbackValue>>
```

Defines the `ToolTip.CustomPopupPlacementCallback` property; see
`Popup::custom_popup_placement_callback_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### show_delay_property

```rust
fn show_delay_property() -> &'static AttachedProperty<i32>
```

Defines the `ToolTip.ShowDelay` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### between_show_delay_property

```rust
fn between_show_delay_property() -> &'static AttachedProperty<i32>
```

Defines the `ToolTip.BetweenShowDelay` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### show_on_disabled_property

```rust
fn show_on_disabled_property() -> &'static AttachedProperty<bool>
```

Defines the `ToolTip.ShowOnDisabled` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### service_enabled_property

```rust
fn service_enabled_property() -> &'static AttachedProperty<bool>
```

Defines the `ToolTip.ServiceEnabled` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### should_use_overlay_layer_property

```rust
fn should_use_overlay_layer_property() -> &'static AttachedProperty<bool>
```

Defines the `ToolTip.ShouldUseOverlayLayer` property; see
`Popup::should_use_overlay_layer`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### tool_tip_property

```rust
fn tool_tip_property() -> &'static AttachedProperty<Option<Ref<ToolTip>>>
```

Stores the current `ToolTip` instance in the control (internal
upstream).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L67)

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

### tool_tip_opening_event

```rust
fn tool_tip_opening_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
```

The event raised when a tooltip is going to be shown on an
element.

To prevent a tooltip from appearing in the UI, your handler for
`ToolTipOpening` can mark the event data as cancelled. Otherwise,
the tooltip is displayed, using the value of the `Tip` property
as the tooltip content. Another possible scenario is that you
could write a handler that resets the value of the `Tip`
property for the element that is the event source, just before
the tooltip is displayed. `ToolTipOpening` will not be raised if
the value of `Tip` is `None` or otherwise unset. Do not
deliberately set `Tip` to `None` while a tooltip is open or
opening; this will not have the effect of closing the tooltip,
and will instead create an undesirable visual artifact in the UI.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L163)

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

### tool_tip_closing_event

```rust
fn tool_tip_closing_event() -> &'static RoutedEvent<RoutedEventArgs>
```

The event raised when a tooltip on an element that was shown
should now be hidden.

Marking the `ToolTipClosing` event as handled does not cancel
closing the tooltip. Once the tooltip is displayed, closing the
tooltip is done only in response to user interaction with the UI.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L183)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L202)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L213)

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

### get_tip

```rust
fn get_tip(element: &Control) -> Option<BoxedValue>
```

Gets the value of the `ToolTip.Tip` attached property: the content
to be displayed in the tooltip of `element`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L219)

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

### set_tip

```rust
fn set_tip(element: &Control, value: Option<BoxedValue>)
```

Sets the value of the `ToolTip.Tip` attached property: the content
to be displayed in the tooltip of `element`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L225)

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

### get_is_open

```rust
fn get_is_open(element: &Control) -> bool
```

Gets the value of the `ToolTip.IsOpen` attached property: whether
the tooltip of `element` is visible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L231)

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

### set_is_open

```rust
fn set_is_open(element: &Control, value: bool)
```

Sets the value of the `ToolTip.IsOpen` attached property: whether
the tooltip of `element` is visible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L237)

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

### get_placement

```rust
fn get_placement(element: &Control) -> PlacementMode
```

Gets the value of the `ToolTip.Placement` attached property: how the
tooltip of `element` is positioned.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L243)

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

### set_placement

```rust
fn set_placement(element: &Control, value: PlacementMode)
```

Sets the value of the `ToolTip.Placement` attached property: how the
tooltip of `element` is positioned.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L249)

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

### get_horizontal_offset

```rust
fn get_horizontal_offset(element: &Control) -> f64
```

Gets the value of the `ToolTip.HorizontalOffset` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L254)

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

### set_horizontal_offset

```rust
fn set_horizontal_offset(element: &Control, value: f64)
```

Sets the value of the `ToolTip.HorizontalOffset` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L259)

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

### get_vertical_offset

```rust
fn get_vertical_offset(element: &Control) -> f64
```

Gets the value of the `ToolTip.VerticalOffset` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L264)

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

### set_vertical_offset

```rust
fn set_vertical_offset(element: &Control, value: f64)
```

Sets the value of the `ToolTip.VerticalOffset` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L269)

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

### get_show_delay

```rust
fn get_show_delay(element: &Control) -> i32
```

Gets the value of the `ToolTip.ShowDelay` attached property: the
time, in milliseconds, before the tooltip of `element` opens.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L275)

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

### set_show_delay

```rust
fn set_show_delay(element: &Control, value: i32)
```

Sets the value of the `ToolTip.ShowDelay` attached property: the
time, in milliseconds, before the tooltip of `element` opens.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L281)

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

### get_between_show_delay

```rust
fn get_between_show_delay(element: &Control) -> i32
```

Gets the number of milliseconds since the last tooltip closed during
which the tooltip of `element` will open immediately, or a negative
value indicating that the tooltip will always wait for the show
delay before opening.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L289)

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

### set_between_show_delay

```rust
fn set_between_show_delay(element: &Control, value: i32)
```

Sets the number of milliseconds since the last tooltip closed during
which the tooltip of `element` will open immediately.

Setting a negative value disables the immediate opening behaviour.
The tooltip of `element` will then always wait until the show delay
elapses before showing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L299)

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

### get_show_on_disabled

```rust
fn get_show_on_disabled(element: &Control) -> bool
```

Gets whether a control will display a tooltip even if it disabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L304)

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

### set_show_on_disabled

```rust
fn set_show_on_disabled(element: &Control, value: bool)
```

Sets whether a control will display a tooltip even if it disabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L309)

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

### get_service_enabled

```rust
fn get_service_enabled(element: &Control) -> bool
```

Gets whether showing and hiding of a control's tooltip will be
automatically controlled by the tooltip service.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L315)

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

### set_service_enabled

```rust
fn set_service_enabled(element: &Control, value: bool)
```

Sets whether showing and hiding of a control's tooltip will be
automatically controlled by the tooltip service.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L321)

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

### get_should_use_overlay_layer

```rust
fn get_should_use_overlay_layer(element: &Control) -> bool
```

Gets whether the tooltip popup for `element` is shown in the overlay
layer. See `Popup::should_use_overlay_layer` for details.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L327)

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

### set_should_use_overlay_layer

```rust
fn set_should_use_overlay_layer(element: &Control, value: bool)
```

Sets whether the tooltip popup for `element` is shown in the overlay
layer. See `Popup::should_use_overlay_layer` for details.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L333)

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

### add_tool_tip_opening_handler

```rust
fn add_tool_tip_opening_handler(element: &Control, handler: impl Fn(&Interactive, &CancelRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Adds a handler for the `ToolTipOpening` attached event to `element`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L338)

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

### remove_tool_tip_opening_handler

```rust
fn remove_tool_tip_opening_handler(element: &Control, handler: RoutedEventHandlerToken)
```

Removes a handler for the `ToolTipOpening` attached event from
`element`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L347)

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

### add_tool_tip_closing_handler

```rust
fn add_tool_tip_closing_handler(element: &Control, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Adds a handler for the `ToolTipClosing` attached event to `element`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L352)

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

### remove_tool_tip_closing_handler

```rust
fn remove_tool_tip_closing_handler(element: &Control, handler: RoutedEventHandlerToken)
```

Removes a handler for the `ToolTipClosing` attached event from
`element`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L361)

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

### get_custom_popup_placement_callback

```rust
fn get_custom_popup_placement_callback(element: &Control) -> Option<CustomPopupPlacementCallback>
```

Gets the value of the `ToolTip.CustomPopupPlacementCallback`
attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L367)

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

### set_custom_popup_placement_callback

```rust
fn set_custom_popup_placement_callback(element: &Control, value: Option<CustomPopupPlacementCallback>)
```

Sets the value of the `ToolTip.CustomPopupPlacementCallback`
attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L373)

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

### adorned_control

```rust
fn adorned_control(self: &Self) -> Option<Ref<Control>>
```

The control this tooltip is shown for (internal upstream).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L428)

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

### closed

```rust
fn closed(self: &Self, handler: impl Fn(&ToolTip) -> () + 'static) -> Subscription
```

Raised when the popup of the tooltip has closed (internal upstream).

Dropping the returned guard removes the handler;
`Subscription::detach` keeps it for the life of the tooltip.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L436)

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

### popup_host

```rust
fn popup_host(self: &Self) -> Option<Rc<dyn IPopupHost>>
```

The host of the popup the tooltip is shown in, while it is open.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L447)

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

### popup_host_changed

```rust
fn popup_host_changed(self: &Self, handler: impl Fn(Option<&Rc<dyn IPopupHost>>) -> () + 'static) -> Subscription
```

Raised when the popup host changes (the popup host provider contract).

Dropping the returned guard removes the handler;
`Subscription::detach` keeps it for the life of the tooltip.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L456)

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

### to_popup_host_provider

```rust
fn to_popup_host_provider(self: &Self) -> Rc<dyn IPopupHostProvider>
```

The tooltip as a popup host provider (the diagnostics contract it
implements upstream).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tool_tip.rs#L471)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ContentControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<ToolTip>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`ContentControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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