63 lines
2.0 KiB
TypeScript
63 lines
2.0 KiB
TypeScript
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
/**
|
|
* WindowService 窗口管理服务
|
|
* @module
|
|
*/
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import * as application$0 from "../../../github.com/wailsapp/wails/v3/pkg/application/models.js";
|
|
|
|
/**
|
|
* GetOpenWindows 获取所有打开的文档窗口
|
|
*/
|
|
export function GetOpenWindows(): Promise<application$0.Window[]> & { cancel(): void } {
|
|
let $resultPromise = $Call.ByID(1464997251) as any;
|
|
let $typingPromise = $resultPromise.then(($result: any) => {
|
|
return $$createType0($result);
|
|
}) as any;
|
|
$typingPromise.cancel = $resultPromise.cancel.bind($resultPromise);
|
|
return $typingPromise;
|
|
}
|
|
|
|
/**
|
|
* IsDocumentWindowOpen 检查指定文档的窗口是否已打开
|
|
*/
|
|
export function IsDocumentWindowOpen(documentID: number): Promise<boolean> & { cancel(): void } {
|
|
let $resultPromise = $Call.ByID(1735611839, documentID) as any;
|
|
return $resultPromise;
|
|
}
|
|
|
|
/**
|
|
* OpenDocumentWindow 为指定文档ID打开新窗口
|
|
*/
|
|
export function OpenDocumentWindow(documentID: number): Promise<void> & { cancel(): void } {
|
|
let $resultPromise = $Call.ByID(494716471, documentID) as any;
|
|
return $resultPromise;
|
|
}
|
|
|
|
/**
|
|
* ServiceShutdown 实现服务关闭接口
|
|
*/
|
|
export function ServiceShutdown(): Promise<void> & { cancel(): void } {
|
|
let $resultPromise = $Call.ByID(202192783) as any;
|
|
return $resultPromise;
|
|
}
|
|
|
|
/**
|
|
* ServiceStartup 服务启动时初始化
|
|
*/
|
|
export function ServiceStartup(options: application$0.ServiceOptions): Promise<void> & { cancel(): void } {
|
|
let $resultPromise = $Call.ByID(2432987694, options) as any;
|
|
return $resultPromise;
|
|
}
|
|
|
|
// Private type creation functions
|
|
const $$createType0 = $Create.Array($Create.Any);
|