/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/Workspaces/WorkspacesCsharpLibrary/Data/MonitorConfigurationWrapper.cs
43 строки
1 KB
Kai Tao
Cmdpal extension: Powertoys extension for cmdpal (#44006)
23 дек 2025, 16:07
Не верифицирован
23 дек 2025, 16:07
d87dde1
Код
Авторство
О чём код?
// 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 System.Text.Json.Serialization; namespace WorkspacesCsharpLibrary.Data; public struct MonitorConfigurationWrapper { public struct MonitorRectWrapper { [JsonPropertyName("top")] public int Top { get; set; } [JsonPropertyName("left")] public int Left { get; set; } [JsonPropertyName("width")] public int Width { get; set; } [JsonPropertyName("height")] public int Height { get; set; } } [JsonPropertyName("id")] public string Id { get; set; } [JsonPropertyName("instance-id")] public string InstanceId { get; set; } [JsonPropertyName("monitor-number")] public int MonitorNumber { get; set; } [JsonPropertyName("dpi")] public int Dpi { get; set; } [JsonPropertyName("monitor-rect-dpi-aware")] public MonitorRectWrapper MonitorRectDpiAware { get; set; } [JsonPropertyName("monitor-rect-dpi-unaware")] public MonitorRectWrapper MonitorRectDpiUnaware { get; set; } }