2019-12-20 17:00:04 +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.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Settings
|
|
|
|
{
|
2022-01-21 22:45:08 +08:00
|
|
|
/// <summary>
|
|
|
|
/// A non-generic interface for <see cref="SettingsItem{T}"/>s.
|
|
|
|
/// </summary>
|
|
|
|
public interface ISettingsItem : IExpandable, IDisposable
|
2019-12-20 17:00:04 +08:00
|
|
|
{
|
2022-01-21 22:45:08 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Invoked when the setting value has changed.
|
|
|
|
/// </summary>
|
2019-12-20 17:00:04 +08:00
|
|
|
event Action SettingChanged;
|
2022-01-21 22:47:11 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Returns whether the UI control is currently in a dragged state.
|
|
|
|
/// </summary>
|
|
|
|
bool IsControlDragged { get; }
|
2019-12-20 17:00:04 +08:00
|
|
|
}
|
|
|
|
}
|