2017-04-13 21:00:49 +00:00
|
|
|
|
// 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
|
2017-04-13 21:00:49 +00:00
|
|
|
|
/// </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; }
|
|
|
|
|
}
|
2017-04-13 21:00:49 +00:00
|
|
|
|
}
|