2019-11-08 12:16:09 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2019-11-08 12:16:09 +08:00
|
|
|
namespace osu.Game.Graphics.UserInterface
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// An on/off state with an extra indeterminate state.
|
|
|
|
/// </summary>
|
2019-11-11 17:56:18 +08:00
|
|
|
public enum TernaryState
|
2019-11-08 12:16:09 +08:00
|
|
|
{
|
|
|
|
/// <summary>
|
2019-11-11 17:56:18 +08:00
|
|
|
/// The current state is false.
|
2019-11-08 12:16:09 +08:00
|
|
|
/// </summary>
|
2019-11-11 17:56:18 +08:00
|
|
|
False,
|
2019-11-08 12:16:09 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2019-11-11 17:56:18 +08:00
|
|
|
/// The current state is a combination of <see cref="False"/> and <see cref="True"/>.
|
2019-11-12 09:18:25 +08:00
|
|
|
/// The state becomes <see cref="True"/> if the <see cref="TernaryStateMenuItem"/> is pressed.
|
2019-11-08 12:16:09 +08:00
|
|
|
/// </summary>
|
|
|
|
Indeterminate,
|
|
|
|
|
|
|
|
/// <summary>
|
2019-11-11 17:56:18 +08:00
|
|
|
/// The current state is true.
|
2019-11-08 12:16:09 +08:00
|
|
|
/// </summary>
|
2019-11-11 17:56:18 +08:00
|
|
|
True
|
2019-11-08 12:16:09 +08:00
|
|
|
}
|
|
|
|
}
|