IIndexedDisplayContainer.cs 675 B

123456789101112131415161718
  1. namespace TBL.GodotSharp.Ui.Indexed
  2. {
  3. /// <summary>
  4. /// <see cref="IIndexedDisplayElement{T}"/> 的容器接口
  5. /// </summary>
  6. /// <typeparam name="TIndex">元素索引的类型</typeparam>
  7. /// <typeparam name="T">元素的类型</typeparam>
  8. public interface IIndexedDisplayContainer<in TIndex, in T>
  9. where T : IIndexedDisplayElement<TIndex> where TIndex : unmanaged
  10. {
  11. /// <summary>
  12. /// 刷新某个显示元素
  13. /// </summary>
  14. /// <param name="index">元素索引</param>
  15. /// <param name="element">元素显示对象</param>
  16. void Refresh(TIndex index, T element);
  17. }
  18. }