| 1103 | * "DP-1": { resolution: { width: 2560, height: 1440, refreshRate: 144 } }, |
| 1104 | * "eDP-1": { resolution: "best", scale: 2 }, |
| 1105 | * })); |
| 1106 | * ``` |
| 1107 | * |
| 1108 | * @example Read output info / 出力情報を読む |
| 1109 | * ```ts |
| 1110 | * const hz = COMPOSITOR.output.get("DP-1")?.resolution?.refreshRate; |
| 1111 | * const [primary] = COMPOSITOR.output.outputs; |
| 1112 | * ``` |
| 1113 | */ |
| 1114 | export interface OutputController { |
| 1115 | /** Names of all currently connected and enabled outputs. / 接続・有効な出力名の一覧。 */ |
| 1116 | readonly list: string[]; |
| 1117 | /** Snapshot of every connected output. / 接続中の全出力のスナップショット。 */ |
| 1118 | readonly outputs: OutputInfo[]; |
| 1119 | /** Snapshots keyed by output name. / 出力名をキーとしたスナップショット。 */ |
| 1120 | readonly current: Record<string, OutputInfo>; |
| 1121 | /** Returns the snapshot for `outputName`, or `undefined` if not found. / 指定名の出力スナップショット。見つからない場合は `undefined`。 */ |
| 1122 | get(outputName: string): OutputInfo | undefined; |
| 1123 | /** Returns the first output matching `predicate`. / `predicate` に一致する最初の出力を返します。 */ |
| 1124 | find(predicate: (output: OutputInfo) => boolean): OutputInfo | undefined; |
| 1125 | /** All DRM modes reported by the driver for `outputName`. / ドライバーが報告する全 DRM モード。 */ |
| 1126 | availableModes(outputName: string): OutputMode[]; |
| 1127 | /** |
| 1128 | * Registers a factory that the compositor calls whenever the set of connected |
no outgoing calls
no test coverage detected