MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / ProcessController

Interface ProcessController

packages/shoji_wm/src/types.ts:1105–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 */
1114export 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

Callers 11

connectSocketFunction · 0.80
index.tsxFile · 0.80
index.tsxFile · 0.80
index.tsxFile · 0.80
toggleStartMenuFunction · 0.80
test_listenfd_supportFunction · 0.80
spawn_satellite_processFunction · 0.80
spawn_waiter_threadFunction · 0.80
spawn_runtime_processFunction · 0.80
run_tty_udevFunction · 0.80
spawn_async_asset_workerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected