Versions in this module Expand all Collapse all v2 v2.7.2 Jan 29, 2024 Changes in this version + const WMCOPYDATA_SINGLE_INSTANCE_DATA — windows/amd64 + var ModifierMap = map[keys.Modifier]winc.Modifiers — windows/amd64 + func EnumProc(hMonitor w32.HMONITOR, hdcMonitor w32.HDC, lprcMonitor *w32.RECT, ...) uintptr — windows/amd64 + func GetMonitorInfo(hMonitor w32.HMONITOR) (*w32.MONITORINFO, error) — windows/amd64 + func MonitorsEqual(first w32.MONITORINFO, second w32.MONITORINFO) bool — windows/amd64 + func SendMessage(hwnd w32.HWND, data string) — windows/amd64 + func SetupSingleInstance(uniqueId string) — windows/amd64 + type COPYDATASTRUCT struct — windows/amd64 + type EventNotify struct — windows/amd64 + Data []interface{} + Name string + type Frontend struct — windows/amd64 + func NewFrontend(ctx context.Context, appoptions *options.App, myLogger *logger.Logger, ...) *Frontend + func (f *Frontend) BrowserOpenURL(url string) + func (f *Frontend) Callback(message string) + func (f *Frontend) ClipboardGetText() (string, error) + func (f *Frontend) ClipboardSetText(text string) error + func (f *Frontend) ExecJS(js string) + func (f *Frontend) Hide() + func (f *Frontend) MenuSetApplicationMenu(menu *menu.Menu) + func (f *Frontend) MenuUpdateApplicationMenu() + func (f *Frontend) MessageDialog(options frontend.MessageDialogOptions) (string, error) + func (f *Frontend) Notify(name string, data ...interface{}) + func (f *Frontend) OpenDirectoryDialog(options frontend.OpenDialogOptions) (string, error) + func (f *Frontend) OpenFileDialog(options frontend.OpenDialogOptions) (string, error) + func (f *Frontend) OpenMultipleFilesDialog(options frontend.OpenDialogOptions) ([]string, error) + func (f *Frontend) Quit() + func (f *Frontend) Run(ctx context.Context) error + func (f *Frontend) RunMainLoop() + func (f *Frontend) SaveFileDialog(options frontend.SaveDialogOptions) (string, error) + func (f *Frontend) ScreenGetAll() ([]Screen, error) + func (f *Frontend) Show() + func (f *Frontend) ShowWindow() + func (f *Frontend) WindowCenter() + func (f *Frontend) WindowClose() + func (f *Frontend) WindowFullscreen() + func (f *Frontend) WindowGetPosition() (int, int) + func (f *Frontend) WindowGetSize() (int, int) + func (f *Frontend) WindowHide() + func (f *Frontend) WindowIsFullscreen() bool + func (f *Frontend) WindowIsMaximised() bool + func (f *Frontend) WindowIsMinimised() bool + func (f *Frontend) WindowIsNormal() bool + func (f *Frontend) WindowMaximise() + func (f *Frontend) WindowMinimise() + func (f *Frontend) WindowPrint() + func (f *Frontend) WindowReload() + func (f *Frontend) WindowReloadApp() + func (f *Frontend) WindowSetAlwaysOnTop(b bool) + func (f *Frontend) WindowSetBackgroundColour(col *options.RGBA) + func (f *Frontend) WindowSetDarkTheme() + func (f *Frontend) WindowSetLightTheme() + func (f *Frontend) WindowSetMaxSize(width int, height int) + func (f *Frontend) WindowSetMinSize(width int, height int) + func (f *Frontend) WindowSetPosition(x, y int) + func (f *Frontend) WindowSetSize(width, height int) + func (f *Frontend) WindowSetSystemDefaultTheme() + func (f *Frontend) WindowSetTitle(title string) + func (f *Frontend) WindowShow() + func (f *Frontend) WindowToggleMaximise() + func (f *Frontend) WindowUnfullscreen() + func (f *Frontend) WindowUnmaximise() + func (f *Frontend) WindowUnminimise() + type Screen = frontend.Screen — windows/amd64 + func GetAllScreens(mainWinHandle w32.HWND) ([]Screen, error) + type ScreenContainer struct — windows/amd64 + type Window struct — windows/amd64 + OnResume func() + OnSuspend func() + func NewWindow(parent winc.Controller, appoptions *options.App, ...) *Window + func (w *Window) Fullscreen() + func (w *Window) IsFullScreen() bool + func (w *Window) IsMaximised() bool + func (w *Window) IsMinimised() bool + func (w *Window) IsNormal() bool + func (w *Window) IsVisible() bool + func (w *Window) Restore() + func (w *Window) SetApplicationMenu(menu *menu.Menu) + func (w *Window) SetMaxSize(maxWidth int, maxHeight int) + func (w *Window) SetMinSize(minWidth int, minHeight int) + func (w *Window) SetTheme(theme winoptions.Theme) + func (w *Window) UnFullscreen() + func (w *Window) UpdateTheme() + func (w *Window) WndProc(msg uint32, wparam, lparam uintptr) uintptr