mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
23 lines
778 B
C#
23 lines
778 B
C#
using System;
|
|
using Artemis.Core.DataModelExpansions;
|
|
|
|
namespace Artemis.Core
|
|
{
|
|
/// <summary>
|
|
/// Represents a data binding that binds a certain <see cref="LayerProperty{T}" /> to a value inside a
|
|
/// <see cref="DataModel" />
|
|
/// </summary>
|
|
public interface IDataBinding : IStorageModel, IUpdateModel, IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Updates the smoothing progress of the data binding and recalculates the value next <see cref="Apply" /> call
|
|
/// </summary>
|
|
/// <param name="delta">The delta to apply during update</param>
|
|
void UpdateWithDelta(TimeSpan delta);
|
|
|
|
/// <summary>
|
|
/// Applies the data binding to the layer property
|
|
/// </summary>
|
|
void Apply();
|
|
}
|
|
} |