Make WindowConfig extensible

This commit is contained in:
Liza 2024-12-22 15:54:24 +01:00
parent 2d214b1338
commit b581e2ea2a
Signed by: liza
GPG Key ID: 2C41B84815CF6445
2 changed files with 9 additions and 1 deletions

View File

@ -6,3 +6,11 @@ public interface IPersistableWindowConfig
void SaveWindowConfig();
}
public interface IPersistableWindowConfig<out T> : IPersistableWindowConfig
where T : WindowConfig
{
new T? WindowConfig { get; }
WindowConfig? IPersistableWindowConfig.WindowConfig => WindowConfig;
}

View File

@ -1,6 +1,6 @@
namespace LLib.ImGui;
public sealed class WindowConfig
public class WindowConfig
{
public bool IsPinned { get; set; }
public bool IsClickthrough { get; set; }