application

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application is the main Wails application

func New

func New() *Application

New creates a new Application with the default options

func NewWithOptions

func NewWithOptions(options *options.App) *Application

NewWithOptions creates a new Application with the given options

func (*Application) Bind

func (a *Application) Bind(boundStruct any)

Bind the given struct to the application

func (*Application) On

func (a *Application) On(eventType EventType, callback func())

func (*Application) Quit

func (a *Application) Quit()

Quit will shut down the application

func (*Application) Run

func (a *Application) Run() error

Run starts the application

func (*Application) SetApplicationMenu

func (a *Application) SetApplicationMenu(appMenu *menu.Menu)

SetApplicationMenu sets the application menu

type EventType

type EventType int
const (
	StartUp EventType = iota
	ShutDown
	DomReady
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL