2020-09-04 21:36:40 +10:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Explorer
|
2020-09-04 23:49:43 +10:00
|
|
|
|
{
|
2020-09-04 21:36:40 +10:00
|
|
|
|
public class ScrollViewStateUnstrip
|
|
|
|
|
{
|
|
|
|
|
public Rect position;
|
|
|
|
|
public Rect visibleRect;
|
|
|
|
|
public Rect viewRect;
|
|
|
|
|
public Vector2 scrollPosition;
|
|
|
|
|
public bool apply;
|
|
|
|
|
|
|
|
|
|
public static Dictionary<IntPtr, ScrollViewStateUnstrip> Dict = new Dictionary<IntPtr, ScrollViewStateUnstrip>();
|
|
|
|
|
|
|
|
|
|
public static ScrollViewStateUnstrip FromPointer(IntPtr ptr)
|
|
|
|
|
{
|
|
|
|
|
if (!Dict.ContainsKey(ptr))
|
|
|
|
|
{
|
|
|
|
|
Dict.Add(ptr, new ScrollViewStateUnstrip());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Dict[ptr];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|