Files
beyond/Assets/Plugins/Editor/JetBrains.RiderFlow/2019.4/SearchWindowSettings.cs
2024-11-20 15:21:28 +01:00

26 lines
855 B
C#

using JetBrains.RiderFlow.Core.UI.SearchEverywhere;
using UnityEngine;
namespace JetBrains.RiderFlow.Since2019_4
{
public class SearchWindowSettings : ISearchWindowSettings
{
private string mySearchValue = "";
private int myTab = 0;
private Rect myPosition = new Rect(0, 0, 800, 500);
private bool myIsSettignsCached = false;
public void SaveCache(string searchFieldValue, int chosenTab, Rect position)
{
mySearchValue = searchFieldValue;
myTab = chosenTab;
myPosition = position;
myIsSettignsCached = true;
}
public Rect GetCachedSize => myPosition;
public string GetCachedSearchQuery => mySearchValue;
public bool IsSettingsCached => myIsSettignsCached;
public int GetCachedTab => myTab;
}
}