com.alicizax.unity.ui.exten.../Runtime/RecyclerView/Navigation/RecyclerNavigationOptions.cs

22 lines
660 B
C#
Raw Normal View History

namespace AlicizaX.UI
{
public readonly struct RecyclerNavigationOptions
{
public static readonly RecyclerNavigationOptions Clamped = new(false, false, ScrollAlignment.Center);
public static readonly RecyclerNavigationOptions Circular = new(true, false, ScrollAlignment.Center);
public RecyclerNavigationOptions(bool wrap, bool smoothScroll, ScrollAlignment alignment)
{
Wrap = wrap;
SmoothScroll = smoothScroll;
Alignment = alignment;
}
public bool Wrap { get; }
public bool SmoothScroll { get; }
public ScrollAlignment Alignment { get; }
}
}