mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 04:59:38 +08:00
19 lines
467 B
Go
19 lines
467 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
|
|
}
|
|
|
|
func newRuntime(eventManager *eventManager, renderer Renderer) *Runtime {
|
|
return &Runtime{
|
|
Events: newRuntimeEvents(eventManager),
|
|
Log: newRuntimeLog(),
|
|
Dialog: newRuntimeDialog(renderer),
|
|
Window: newRuntimeWindow(renderer),
|
|
}
|
|
}
|