mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:20:48 +08:00
23 lines
631 B
Go
23 lines
631 B
Go
package wails
|
|
|
|
// Runtime is the Wails Runtime Interface, given to a user who has defined the WailsInit method
|
|
type Runtime struct {
|
|
Events *RuntimeEvents
|
|
Log *RuntimeLog
|
|
Dialog *RuntimeDialog
|
|
Window *RuntimeWindow
|
|
Browser *RuntimeBrowser
|
|
FileSystem *RuntimeFileSystem
|
|
}
|
|
|
|
func newRuntime(eventManager *eventManager, renderer Renderer) *Runtime {
|
|
return &Runtime{
|
|
Events: newRuntimeEvents(eventManager),
|
|
Log: newRuntimeLog(),
|
|
Dialog: newRuntimeDialog(renderer),
|
|
Window: newRuntimeWindow(renderer),
|
|
Browser: newRuntimeBrowser(),
|
|
FileSystem: newRuntimeFileSystem(),
|
|
}
|
|
}
|