MCPcopy
hub / github.com/wailsapp/wails / ScreenGetAll

Method ScreenGetAll

v2/internal/frontend/desktop/windows/frontend.go:415–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413}
414
415func (f *Frontend) ScreenGetAll() ([]Screen, error) {
416 var wg sync.WaitGroup
417 wg.Add(1)
418 screens := []Screen{}
419 err := error(nil)
420 f.mainWindow.Invoke(func() {
421 screens, err = GetAllScreens(f.mainWindow.Handle())
422 wg.Done()
423
424 })
425 wg.Wait()
426 return screens, err
427}
428
429func (f *Frontend) Show() {
430 f.mainWindow.Show()

Callers

nothing calls this directly

Implementers 3

Frontendv2/internal/frontend/desktop/windows/f
Frontendv2/internal/frontend/desktop/darwin/fr
Frontendv2/internal/frontend/desktop/linux/fro

Calls 4

GetAllScreensFunction · 0.70
AddMethod · 0.65
InvokeMethod · 0.65
HandleMethod · 0.65

Tested by

no test coverage detected