Add CreatePhysicalWindow().

This commit is contained in:
H. Utku Maden 2025-11-09 12:00:21 +03:00
parent edc85c3f24
commit 6e8888df48

View File

@ -71,6 +71,17 @@ namespace Dashboard.Pal
/// </summary>
/// <returns>A physical window.</returns>
public abstract IPhysicalWindow CreatePhysicalWindow();
/// <summary>
/// Create a physical window with a window manager.
/// </summary>
/// <returns>A physical window with the given window manager.</returns>
public IPhysicalWindow CreatePhysicalWindow(IWindowManager wm)
{
IPhysicalWindow window = CreatePhysicalWindow();
window.WindowManager = wm;
return window;
}
#endregion
public bool IsExtensionAvailable<T>() where T : IAppContextExtension