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

Struct Frontend

v2/internal/frontend/desktop/windows/frontend.go:46–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44type Screen = frontend.Screen
45
46type Frontend struct {
47
48 // Context
49 ctx context.Context
50
51 frontendOptions *options.App
52 logger *logger.Logger
53 chromium *edge.Chromium
54 debug bool
55 devtoolsEnabled bool
56
57 // Assets
58 assets *assetserver.AssetServer
59 startURL *url.URL
60
61 // main window handle
62 mainWindow *Window
63 bindings *binding.Bindings
64 dispatcher frontend.Dispatcher
65
66 hasStarted bool
67
68 originValidator *originvalidator.OriginValidator
69
70 // Windows build number
71 versionInfo *operatingsystem.WindowsVersionInfo
72 resizeDebouncer func(f func())
73}
74
75func NewFrontend(ctx context.Context, appoptions *options.App, myLogger *logger.Logger, appBindings *binding.Bindings, dispatcher frontend.Dispatcher) *Frontend {
76

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected