State/IToggleState.cs

16 lines
357 B
C#
Raw Normal View History

2022-11-14 12:55:53 +03:00
using System;
namespace Syntriax.Modules.ToggleState
2022-11-14 12:55:53 +03:00
{
public interface IToggleState
{
/// <summary>
/// Called everytime the IsToggled field is changed
/// </summary>
/// <value>The new value of IsToggled</value>
2022-11-14 12:55:53 +03:00
Action<bool> OnToggleStateChanged { get; set; }
2022-11-14 14:18:53 +03:00
bool IsToggled { get; set; }
2022-11-14 12:55:53 +03:00
}
}