Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &App{ Width: 1024, Height: 768, Logger: logger.NewDefaultLogger(), LogLevel: logger.INFO, }
Default options for creating the App
Functions ¶
func MergeDefaults ¶
func MergeDefaults(appoptions *App)
MergeDefaults will set the minimum default values for an application
Types ¶
type App ¶
type App struct { Title string Width int Height int DisableResize bool Fullscreen bool Frameless bool MinWidth int MinHeight int MaxWidth int MaxHeight int StartHidden bool HideWindowOnClose bool AlwaysOnTop bool RGBA *RGBA Assets fs.FS Menu *menu.Menu Logger logger.Logger `json:"-"` LogLevel logger.LogLevel OnStartup func(ctx context.Context) `json:"-"` OnDomReady func(ctx context.Context) `json:"-"` OnShutdown func(ctx context.Context) `json:"-"` OnBeforeClose func(ctx context.Context) (prevent bool) `json:"-"` Bind []interface{} WindowStartState WindowStartState //ContextMenus []*menu.ContextMenu //TrayMenus []*menu.TrayMenu Windows *windows.Options Mac *mac.Options Linux *linux.Options }
App contains options for creating the App
type WindowStartState ¶
type WindowStartState int
const ( Normal WindowStartState = 0 Maximised WindowStartState = 1 Minimised WindowStartState = 2 Fullscreen WindowStartState = 3 )
Click to show internal directories.
Click to hide internal directories.