Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IToolTipPresenterFactory.cs « ToolTipService « Adornments « TextUI « Def « Text « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbeb4bf0fbf20b2d3f3fe739e0a6b88feacc016a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace Microsoft.VisualStudio.Text.Adornments
{
    using Microsoft.VisualStudio.Text.Editor;

    /// <summary>
    /// Proffers a platform-specific <see cref="IToolTipPresenter"/> to the IDE.
    /// </summary>
    /// <remarks>
    /// This class will always be constructed and called purely from the UI thread.
    /// Extenders can construct their own presenter and supersede the default
    /// one via MEF ordering. Presenter providers should return a new ToolTip each
    /// time they are called and should support multiple simultaneous open tips.
    /// </remarks>
    /// <example>
    /// [Export(typeof(IToolTipPresenterFactory))]
    /// [Name(nameof("super cool tooltip factory"))]
    /// [Order(Before = "default")]
    /// </example>
    public interface IToolTipPresenterFactory
    {
        /// <summary>
        /// Constructs a new instance of <see cref="IToolTipPresenter"/> for the current platform.
        /// </summary>
        /// <param name="textView">
        /// The view that owns the tooltip.
        /// </param>
        /// <param name="parameters">
        /// Parameters to create the tooltip with. Never null.
        /// </param>
        /// <returns>A <see cref="IToolTipPresenter"/> for the current platform.</returns>
        IToolTipPresenter Create(ITextView textView, ToolTipParameters parameters);
    }
}