mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-03 03:52:28 +08:00
29 lines
716 B
C#
29 lines
716 B
C#
#if CPP
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Explorer.Unstrip.IMGUI
|
|
{
|
|
public class Internal_ScrollViewState
|
|
{
|
|
public Rect position;
|
|
public Rect visibleRect;
|
|
public Rect viewRect;
|
|
public Vector2 scrollPosition;
|
|
public bool apply;
|
|
|
|
public static Dictionary<IntPtr, Internal_ScrollViewState> Dict = new Dictionary<IntPtr, Internal_ScrollViewState>();
|
|
|
|
public static Internal_ScrollViewState FromPointer(IntPtr ptr)
|
|
{
|
|
if (!Dict.ContainsKey(ptr))
|
|
{
|
|
Dict.Add(ptr, new Internal_ScrollViewState());
|
|
}
|
|
|
|
return Dict[ptr];
|
|
}
|
|
}
|
|
}
|
|
#endif |