Files
2026-07-13 13:15:05 +08:00

21 lines
640 B
C#

namespace SilkWindows;
public static class ImGuiWindowService
{
private static IImguiWindowProvider? _instance;
public static IImguiWindowProvider Instance
{
get => _instance!;
set
{
if (_instance != null)
throw new Exception($"{typeof(ImGuiWindowService)}'s {nameof(Instance)} already set to {_instance.GetType()}");
_instance = value;
}
}
}
public readonly record struct FontPack(TtfFont Regular, TtfFont Bold, TtfFont Small, TtfFont Large);
public readonly record struct TtfFont(string Path, float PixelSize);