5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 08:10:56 +08:00
wails/v2/wails.go
Lea Anthony ba6538da7c
Made go runtime package public.
Using loglevel store to keep loglevel in sync
2020-10-10 13:57:32 +11:00

30 lines
767 B
Go

// Package wails is the main package of the Wails project.
// It is used by client applications.
package wails
import (
"github.com/wailsapp/wails/v2/internal/app"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/runtime"
)
// Runtime is an alias for the runtime.Runtime struct
type Runtime = runtime.Runtime
// CreateAppWithOptions creates an application based on the given config
func CreateAppWithOptions(options *options.App) *app.App {
return app.CreateApp(options)
}
// CreateApp creates an application based on the given title, width and height
func CreateApp(title string, width int, height int) *app.App {
options := &options.App{
Title: title,
Width: width,
Height: height,
}
return app.CreateApp(options)
}