A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using osu.Framework.Localisation;
5
6namespace osu.Framework.Graphics.Cursor
7{
8 /// <summary>
9 /// Implementing this interface allows the implementing <see cref="Drawable"/> to display a tooltip if it is the child of a <see cref="TooltipContainer"/>. The tooltip used is
10 /// dependent on the implementation of the <see cref="TooltipContainer.CreateTooltip"/> method of the <see cref="TooltipContainer"/> containing this <see cref="Drawable"/>.
11 /// </summary>
12 public interface IHasTooltip : ITooltipContentProvider
13 {
14 /// <summary>
15 /// Tooltip text that shows when hovering the drawable.
16 /// </summary>
17 LocalisableString TooltipText { get; }
18 }
19}