Window
이러한 메서드는 응용 프로그램 창을 제어합니다.
WindowSetTitle
창 제목 표시줄의 텍스트를 설정합니다.
Go: WindowSetTitle(ctx context.Context, title string)
JS: WindowSetTitle(title: string)
WindowFullscreen
창을 전체화면으로 만듭니다.
Go: WindowFullscreen(ctx context.Context)
JS: WindowFullscreen()
WindowUnfullscreen
전체 화면 이전의 이전 창 크기와 위치를 복원합니다.
Go: WindowUnfullscreen(ctx context.Context)
JS: WindowUnfullscreen()
WindowIsFullscreen
창이 전체 화면이면 true를 반환합니다.
Go: WindowIsFullscreen(ctx context.Context) bool
JS: WindowIsFullscreen() Promise<boolean>
WindowCenter
창이 현재 켜져 있는 모니터의 중앙에 창을 맞춥니다.
Go: WindowCenter(ctx context.Context)
JS: WindowCenter()
WindowExecJS
창에서 임의의 JS 코드를 실행합니다.
이 메서드는 브라우저에서 코드를 비동기적으로 실행하고 즉시 반환합니다. 만약 스크립트에서 오류가 발생하면 브라우저 콘솔에서만 사용할 수 있습니다.
Go: WindowExecJS(ctx context.Context, js string)
WindowReload
"새로고침"을 수행합니다(현재 페이지 새로고침).
Go: WindowReload(ctx context.Context)
JS: WindowReload()
WindowReloadApp
프론트엔드 애플리케이션을 새로고침합니다.
Go: WindowReloadApp(ctx context.Context)
JS: WindowReloadApp()
WindowSetSystemDefaultTheme
윈도우 전용.
Go: WindowSetSystemDefaultTheme(ctx context.Context)
JS: WindowSetSystemDefaultTheme()
창의 테마를 시스템 기본값으로 설정합니다(다크/라이트).
WindowSetLightTheme
윈도우 전용.
Go: WindowSetLightTheme(ctx context.Context)
JS: WindowSetLightTheme()
창 테마를 라이트 모드로 설정합니다.
WindowSetDarkTheme
윈도우 전용.
Go: WindowSetDarkTheme(ctx context.Context)
JS: WindowSetDarkTheme()
윈도우 테마를 다크로 설정합니다.
WindowShow
만약 현재 창의 상태가 숨기기로 되어 있다면, 창을 보여줍니다.
Go: WindowShow(ctx context.Context)
JS: WindowShow()
WindowHide
현재 창이 표시되어 있는 경우 창을 숨깁니다.
Go: WindowHide(ctx context.Context)
JS: WindowHide()
WindowIsNormal
창이 최소화, 최대화 또는 전체 화면이 아닌 경우 true를 반환합니다.
Go: WindowIsNormal(ctx context.Context) bool
JS: WindowIsNormal() Promise<boolean>
WindowSetSize
창의 너비와 높이를 설정합니다.
Go: WindowSetSize(ctx context.Context, width int, height int)
JS: WindowSetSize(width: number, height: number)
WindowGetSize
창의 너비와 높이를 가져옵니다.
Go: WindowGetSize(ctx context.Context) (width int, height int)
JS: WindowGetSize(): Promise<Size>