Versions in this module Expand all Collapse all v2 v2.0.0 Oct 22, 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 + DragAndDrop *DragAndDrop + 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) + Server *server.Options + SingleInstanceLock *SingleInstanceLock + StartHidden bool + Title string + Width int + WindowStartState WindowStartState + Windows *windows.Options + type Debug struct + OpenInspectorOnStartup bool + type DragAndDrop struct + CSSDropProperty string + CSSDropValue string + DisableWebViewDrop bool + EnableFileDrop 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