2022-11-14 12:55:53 +03:00
|
|
|
using System;
|
|
|
|
|
2022-11-14 13:01:16 +03:00
|
|
|
namespace Syntriax.Modules.ToggleState
|
2022-11-14 12:55:53 +03:00
|
|
|
{
|
|
|
|
public interface IToggleState
|
|
|
|
{
|
2022-11-14 13:58:44 +03:00
|
|
|
/// <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
|
|
|
}
|
|
|
|
}
|