mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 07:21:32 +08:00
30 lines
586 B
Go
30 lines
586 B
Go
package interfaces
|
|
|
|
import (
|
|
"github.com/wailsapp/wails/lib/messages"
|
|
)
|
|
// Renderer is an interface describing a Wails target to render the app to
|
|
type Renderer interface {
|
|
Initialise(AppConfig, IPCManager, EventManager) error
|
|
Run() error
|
|
|
|
// Binding
|
|
NewBinding(bindingName string) error
|
|
Callback(data string) error
|
|
|
|
// Events
|
|
NotifyEvent(eventData *messages.EventData) error
|
|
|
|
// Dialog Runtime
|
|
SelectFile() string
|
|
SelectDirectory() string
|
|
SelectSaveFile() string
|
|
|
|
// Window Runtime
|
|
SetColour(string) error
|
|
Fullscreen()
|
|
UnFullscreen()
|
|
SetTitle(title string)
|
|
Close()
|
|
}
|