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