Table of Contents

Class ApplicationToolTip

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Manages tooltip behavior for a given Window.

public sealed class ApplicationToolTip : IDisposable
Inheritance
ApplicationToolTip
Implements
Inherited Members

Remarks

This manager provides a shared tooltip instance and associates tooltip content with multiple views. It centralizes hover handling (MouseEnter / MouseLeave) and ensures that only one tooltip is visible at a time.

ToolTip content is defined per View using a factory (Func<TResult>), allowing dynamic content creation on each display.

The manager avoids adding state directly to View by maintaining an external registry.

Constructors

ApplicationToolTip()

Properties

App

The IApplication instance used by this instance.

Methods

Dispose()

Releases all resources used by the manager.

Hide()

Hides the currently visible tooltip.

RemoveToolTip(View)

Removes the tooltip associated with a target view.

SetToolTip(View, Func<string>)

Associates a tooltip with the specified view, using a delegate to dynamically provide the tooltip text.

SetToolTip(View, Func<View>)

Associates a tooltip with the specified target view using a factory function to generate the tooltip content.

SetToolTip(View, string)

Sets the tooltip text for the specified view.

ShowFor(View, ToolTipProvider)

Displays a tooltip for the specified target view using the provided tooltip content provider.