2019-12-05 01:25:31 +08:00
|
|
|
|
/// Credit setchi (https://github.com/setchi)
|
|
|
|
|
/// Sourced from - https://github.com/setchi/FancyScrollView
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace UnityEngine.UI.Extensions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <see cref="FancyGridView{TItemData, TContext}"/> のコンテキスト基底クラス.
|
|
|
|
|
/// </summary>
|
2020-06-30 22:14:04 +08:00
|
|
|
|
public class FancyGridViewContext : IFancyGridViewContext
|
2019-12-05 01:25:31 +08:00
|
|
|
|
{
|
2020-06-30 22:14:04 +08:00
|
|
|
|
ScrollDirection IFancyScrollRectContext.ScrollDirection { get; set; }
|
2019-12-05 01:25:31 +08:00
|
|
|
|
Func<(float ScrollSize, float ReuseMargin)> IFancyScrollRectContext.CalculateScrollSize { get; set; }
|
2020-06-30 22:14:04 +08:00
|
|
|
|
GameObject IFancyCellGroupContext.CellTemplate { get; set; }
|
|
|
|
|
Func<int> IFancyCellGroupContext.GetGroupCount { get; set; }
|
|
|
|
|
Func<float> IFancyGridViewContext.GetStartAxisSpacing { get; set; }
|
|
|
|
|
Func<float> IFancyGridViewContext.GetCellSize { get; set; }
|
2019-12-05 01:25:31 +08:00
|
|
|
|
}
|
|
|
|
|
}
|