Make WindowConfig extensible
This commit is contained in:
parent
2d214b1338
commit
b581e2ea2a
@ -6,3 +6,11 @@ public interface IPersistableWindowConfig
|
|||||||
|
|
||||||
void SaveWindowConfig();
|
void SaveWindowConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public interface IPersistableWindowConfig<out T> : IPersistableWindowConfig
|
||||||
|
where T : WindowConfig
|
||||||
|
{
|
||||||
|
new T? WindowConfig { get; }
|
||||||
|
|
||||||
|
WindowConfig? IPersistableWindowConfig.WindowConfig => WindowConfig;
|
||||||
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
namespace LLib.ImGui;
|
namespace LLib.ImGui;
|
||||||
|
|
||||||
public sealed class WindowConfig
|
public class WindowConfig
|
||||||
{
|
{
|
||||||
public bool IsPinned { get; set; }
|
public bool IsPinned { get; set; }
|
||||||
public bool IsClickthrough { get; set; }
|
public bool IsClickthrough { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user