FancyGridViewContext.cs 929 B

123456789101112131415161718192021222324
  1. /*
  2. * FancyScrollView (https://github.com/setchi/FancyScrollView)
  3. * Copyright (c) 2020 setchi
  4. * Licensed under MIT (https://github.com/setchi/FancyScrollView/blob/master/LICENSE)
  5. */
  6. using System;
  7. using UnityEngine;
  8. namespace FancyScrollView
  9. {
  10. /// <summary>
  11. /// <see cref="FancyGridView{TItemData, TContext}"/> のコンテキスト基底クラス.
  12. /// </summary>
  13. public class FancyGridViewContext : IFancyGridViewContext
  14. {
  15. ScrollDirection IFancyScrollRectContext.ScrollDirection { get; set; }
  16. Func<(float ScrollSize, float ReuseMargin)> IFancyScrollRectContext.CalculateScrollSize { get; set; }
  17. GameObject IFancyCellGroupContext.CellTemplate { get; set; }
  18. Func<int> IFancyCellGroupContext.GetGroupCount { get; set; }
  19. Func<float> IFancyGridViewContext.GetStartAxisSpacing { get; set; }
  20. Func<float> IFancyGridViewContext.GetCellSize { get; set; }
  21. }
  22. }