mirror of
https://github.com/ppy/osu.git
synced 2026-05-16 20:43:12 +08:00
36 lines
1013 B
C#
36 lines
1013 B
C#
// 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;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
namespace osu.Game.Graphics.UserInterfaceV2
|
|
{
|
|
/// <summary>
|
|
/// Represents an interface for all form controls.
|
|
/// </summary>
|
|
public interface IFormControl : IDrawable, IHasFilterTerms
|
|
{
|
|
/// <summary>
|
|
/// Invoked when the value of the control has changed.
|
|
/// </summary>
|
|
event Action ValueChanged;
|
|
|
|
/// <summary>
|
|
/// Whether the value of this control is in a default state.
|
|
/// </summary>
|
|
bool IsDefault { get; }
|
|
|
|
/// <summary>
|
|
/// If enabled, resets the control to its default state.
|
|
/// </summary>
|
|
void SetDefault();
|
|
|
|
/// <summary>
|
|
/// Whether the control is currently disabled.
|
|
/// </summary>
|
|
bool IsDisabled { get; }
|
|
}
|
|
}
|