Versions in this module Expand all Collapse all v2 v2.2.2 Dec 20, 2022 Changes in this version type Frontend + WindowGetNativeHandler func() uintptr v2.2.1 Dec 19, 2022 Changes in this version + type Calls interface + Callback func(string) + type DialogType string + const ErrorDialog + const InfoDialog + const QuestionDialog + const WarningDialog + type Dispatcher interface + ProcessMessage func(message string, sender Frontend) (string, error) + type Events interface + Emit func(eventName string, data ...interface{}) + Notify func(sender Frontend, name string, data ...interface{}) + Off func(eventName string) + OffAll func() + On func(eventName string, callback func(...interface{})) func() + OnMultiple func(eventName string, callback func(...interface{}), counter int) func() + Once func(eventName string, callback func(...interface{})) func() + type FileFilter struct + DisplayName string + Pattern string + type Frontend interface + BrowserOpenURL func(url string) + ExecJS func(js string) + Hide func() + MenuSetApplicationMenu func(menu *menu.Menu) + MenuUpdateApplicationMenu func() + MessageDialog func(dialogOptions MessageDialogOptions) (string, error) + Notify func(name string, data ...interface{}) + OpenDirectoryDialog func(dialogOptions OpenDialogOptions) (string, error) + OpenFileDialog func(dialogOptions OpenDialogOptions) (string, error) + OpenMultipleFilesDialog func(dialogOptions OpenDialogOptions) ([]string, error) + Quit func() + Run func(context.Context) error + RunMainLoop func() + SaveFileDialog func(dialogOptions SaveDialogOptions) (string, error) + ScreenGetAll func() ([]Screen, error) + Show func() + WindowCenter func() + WindowClose func() + WindowFullscreen func() + WindowGetPosition func() (int, int) + WindowGetSize func() (int, int) + WindowHide func() + WindowIsFullscreen func() bool + WindowIsMaximised func() bool + WindowIsMinimised func() bool + WindowIsNormal func() bool + WindowMaximise func() + WindowMinimise func() + WindowReload func() + WindowReloadApp func() + WindowSetAlwaysOnTop func(b bool) + WindowSetBackgroundColour func(col *options.RGBA) + WindowSetDarkTheme func() + WindowSetLightTheme func() + WindowSetMaxSize func(width int, height int) + WindowSetMinSize func(width int, height int) + WindowSetPosition func(x int, y int) + WindowSetSize func(width int, height int) + WindowSetSystemDefaultTheme func() + WindowSetTitle func(title string) + WindowShow func() + WindowToggleMaximise func() + WindowUnfullscreen func() + WindowUnmaximise func() + WindowUnminimise func() + type MessageDialogOptions struct + Buttons []string + CancelButton string + DefaultButton string + Icon []byte + Message string + Title string + Type DialogType + type OpenDialogOptions struct + CanCreateDirectories bool + DefaultDirectory string + DefaultFilename string + Filters []FileFilter + ResolvesAliases bool + ShowHiddenFiles bool + Title string + TreatPackagesAsDirectories bool + type SaveDialogOptions struct + CanCreateDirectories bool + DefaultDirectory string + DefaultFilename string + Filters []FileFilter + ShowHiddenFiles bool + Title string + TreatPackagesAsDirectories bool + type Screen struct + Height int + IsCurrent bool + IsPrimary bool + Width int