Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Browser ¶
type Browser struct{}
Browser exposes browser methods to the runtime
type Dialog ¶
type Dialog struct {
// contains filtered or unexported fields
}
Dialog exposes an interface to native dialogs
func (*Dialog) SelectDirectory ¶
SelectDirectory prompts the user to select a directory
func (*Dialog) SelectFile ¶
SelectFile prompts the user to select a file
func (*Dialog) SelectSaveFile ¶
SelectSaveFile prompts the user to select a file for saving
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
Events exposes the events interface
type FileSystem ¶
type FileSystem struct{}
FileSystem exposes file system utilities to the runtime
func (*FileSystem) HomeDir ¶
func (r *FileSystem) HomeDir() (string, error)
HomeDir returns the user's home directory
type Runtime ¶
type Runtime struct {
Events *Events
Log *Log
Dialog *Dialog
Window *Window
Browser *Browser
FileSystem *FileSystem
}
Runtime is the Wails Runtime Interface, given to a user who has defined the WailsInit method
func NewRuntime ¶
func NewRuntime(eventManager interfaces.EventManager, renderer interfaces.Renderer) *Runtime
NewRuntime creates a new Runtime struct
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window exposes an interface for manipulating the window
func (*Window) UnFullscreen ¶
func (r *Window) UnFullscreen()
UnFullscreen attempts to restore the window to the size/position before fullscreen