Versions in this module Expand all Collapse all v2 v2.7.2 Jan 29, 2024 Changes in this version + func MergeDefaults(appoptions *App) + type App struct + AlwaysOnTop bool + AssetServer *assetserver.Options + Assets fs.FS + AssetsHandler http.Handler + BackgroundColour *RGBA + Bind []interface{} + CSSDragProperty string + CSSDragValue string + Debug Debug + DisableResize bool + EnableDefaultContextMenu bool + EnableFraudulentWebsiteDetection bool + EnumBind []interface{} + ErrorFormatter ErrorFormatter + Experimental *Experimental + Frameless bool + Fullscreen bool + Height int + HideWindowOnClose bool + Linux *linux.Options + LogLevel logger.LogLevel + LogLevelProduction logger.LogLevel + Logger logger.Logger + Mac *mac.Options + MaxHeight int + MaxWidth int + Menu *menu.Menu + MinHeight int + MinWidth int + OnBeforeClose func(ctx context.Context) (prevent bool) + OnDomReady func(ctx context.Context) + OnShutdown func(ctx context.Context) + OnStartup func(ctx context.Context) + SingleInstanceLock *SingleInstanceLock + StartHidden bool + Title string + Width int + WindowStartState WindowStartState + Windows *windows.Options + type Debug struct + OpenInspectorOnStartup bool + type ErrorFormatter func(error) any + type Experimental struct + type RGBA struct + A uint8 + B uint8 + G uint8 + R uint8 + func NewRGB(r, g, b uint8) *RGBA + func NewRGBA(r, g, b, a uint8) *RGBA + type SecondInstanceData struct + Args []string + WorkingDirectory string + func NewSecondInstanceData() (*SecondInstanceData, error) + type SingleInstanceLock struct + OnSecondInstanceLaunch func(secondInstanceData SecondInstanceData) + UniqueId string + type WindowStartState int + const Fullscreen + const Maximised + const Minimised + const Normal