// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Framework.Graphics.Cursor { /// /// Implementing this interface allows the implementing to display a custom tooltip if it is the child of a . /// Keep in mind that tooltips can only be displayed by a if the implementing has set to true. /// public interface IHasCustomTooltip : ITooltipContentProvider { /// /// The custom tooltip that should be displayed. /// /// /// A tooltip may be reused between different drawables with different content if they share the same tooltip type. /// Therefore it is recommended for all displayed content in the tooltip to be provided by instead. /// /// The custom tooltip that should be displayed. ITooltip GetCustomTooltip(); /// /// Tooltip text that shows when hovering the drawable. /// object TooltipContent { get; } } /// public interface IHasCustomTooltip : IHasCustomTooltip { ITooltip IHasCustomTooltip.GetCustomTooltip() => GetCustomTooltip(); /// new ITooltip GetCustomTooltip(); object IHasCustomTooltip.TooltipContent => TooltipContent; /// new TContent TooltipContent { get; } } }