osu/osu.Game/Graphics/Cursor/IHasTooltip.cs

36 lines
975 B
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Graphics.Cursor
{
public interface IHasTooltip
{
/// <summary>
/// Tooltip that shows when hovering the object
/// </summary>
string Tooltip { get; }
}
/// <summary>
2017-04-13 22:18:17 +00:00
/// Tooltip with custom appear time
/// </summary>
public interface IHasDelayedTooltip : IHasTooltip
{
/// <summary>
/// Time until the tooltip appears (in milliseconds)
/// </summary>
int Delay { get; }
}
2017-04-13 22:18:17 +00:00
/// <summary>
/// Tooltip which can show after hovering over the object
/// </summary>
public interface IHasOverhangingTooltip : IHasTooltip
{
/// <summary>
/// Should the tooltip still show?
/// </summary>
bool Overhanging { get; }
}
}