microsoft/TypeAgent
Publicmirrored fromhttps://github.com/microsoft/TypeAgentAvailable
dotnet/autoShell/Services/IDisplayService.cs
25lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace autoShell.Services; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// Abstracts display resolution and text-scaling operations for testability. |
| 8 | /// </summary> |
| 9 | internal interface IDisplayService |
| 10 | { |
| 11 | /// <summary> |
| 12 | /// Lists all unique display resolutions as a JSON string. |
| 13 | /// </summary> |
| 14 | string ListResolutions(); |
| 15 | |
| 16 | /// <summary> |
| 17 | /// Sets the display resolution. Returns a status message. |
| 18 | /// </summary> |
| 19 | string SetResolution(uint width, uint height, uint? refreshRate = null); |
| 20 | |
| 21 | /// <summary> |
| 22 | /// Sets the text scaling percentage via <see cref="autoShell.Services.Interop.UIAutomation"/>. |
| 23 | /// </summary> |
| 24 | void SetTextSize(int percentage); |
| 25 | } |
| 26 | |