microsoft/TypeAgent

Public

mirrored fromhttps://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-shell-and-cli-windows-job

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

dotnet/autoShell/Services/IDisplayService.cs

25lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4namespace autoShell.Services;
5
6/// <summary>
7/// Abstracts display resolution and text-scaling operations for testability.
8/// </summary>
9internal 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