FancyGridViewContext.cs 841 B

1234567891011121314151617181920
  1. /// Credit setchi (https://github.com/setchi)
  2. /// Sourced from - https://github.com/setchi/FancyScrollView
  3. using System;
  4. namespace UnityEngine.UI.Extensions
  5. {
  6. /// <summary>
  7. /// <see cref="FancyGridView{TItemData, TContext}"/> のコンテキスト基底クラス.
  8. /// </summary>
  9. public class FancyGridViewContext : IFancyGridViewContext
  10. {
  11. ScrollDirection IFancyScrollRectContext.ScrollDirection { get; set; }
  12. Func<(float ScrollSize, float ReuseMargin)> IFancyScrollRectContext.CalculateScrollSize { get; set; }
  13. GameObject IFancyCellGroupContext.CellTemplate { get; set; }
  14. Func<int> IFancyCellGroupContext.GetGroupCount { get; set; }
  15. Func<float> IFancyGridViewContext.GetStartAxisSpacing { get; set; }
  16. Func<float> IFancyGridViewContext.GetCellSize { get; set; }
  17. }
  18. }