MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / getWindowPosition

Method getWindowPosition

src/main/api/renderer/window.ts:112–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 }
111
112 public getWindowPosition(): { x: number; y: number } {
113 if (this.mainWindow) {
114 const [x, y] = this.mainWindow.getPosition()
115 return { x, y }
116 }
117 return { x: 0, y: 0 }
118 }
119
120 public setWindowPosition(x: number, y: number): void {
121 if (this.mainWindow && this.lockedSize) {

Callers 1

setupIPCMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected