// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Windows.Graphics; namespace Microsoft.CmdPal.UI.ViewModels; public sealed class WindowPosition { /// /// Gets or sets left position in device pixels. /// public int X { get; set; } /// /// Gets or sets top position in device pixels. /// public int Y { get; set; } /// /// Gets or sets width in device pixels. /// public int Width { get; set; } /// /// Gets or sets height in device pixels. /// public int Height { get; set; } /// /// Gets or sets width of the screen in device pixels where the window is located. /// public int ScreenWidth { get; set; } /// /// Gets or sets height of the screen in device pixels where the window is located. /// public int ScreenHeight { get; set; } /// /// Gets or sets DPI (dots per inch) of the display where the window is located. /// public int Dpi { get; set; } /// /// Converts the window position properties to a structure representing the physical window rectangle. /// public RectInt32 ToPhysicalWindowRectangle() { return new RectInt32(X, Y, Width, Height); } }