Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func EnumProc(hMonitor w32.HMONITOR, hdcMonitor w32.HDC, lprcMonitor *w32.RECT, ...) uintptr
- func GetMonitorInfo(hMonitor w32.HMONITOR) (*w32.MONITORINFO, error)
- func MonitorsEqual(first w32.MONITORINFO, second w32.MONITORINFO) bool
- func SendMessage(hwnd w32.HWND, data string)
- func SetupSingleInstance(uniqueId string)
- type COPYDATASTRUCT
- type EventNotify
- type 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
- type ScreenContainer
- type 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
Constants ¶
View Source
const WMCOPYDATA_SINGLE_INSTANCE_DATA = 1542
WMCOPYDATA_SINGLE_INSTANCE_DATA we define our own type for WM_COPYDATA message
Variables ¶
View Source
var ModifierMap = map[keys.Modifier]winc.Modifiers{ keys.ShiftKey: winc.ModShift, keys.ControlKey: winc.ModControl, keys.OptionOrAltKey: winc.ModAlt, keys.CmdOrCtrlKey: winc.ModControl, }
Functions ¶
func GetMonitorInfo ¶
func GetMonitorInfo(hMonitor w32.HMONITOR) (*w32.MONITORINFO, error)
func MonitorsEqual ¶
func MonitorsEqual(first w32.MONITORINFO, second w32.MONITORINFO) bool
func SendMessage ¶
func SetupSingleInstance ¶
func SetupSingleInstance(uniqueId string)
SetupSingleInstance single instance Windows app
Types ¶
type COPYDATASTRUCT ¶
type COPYDATASTRUCT struct {
// contains filtered or unexported fields
}
type EventNotify ¶
type EventNotify struct { Name string `json:"name"` Data []interface{} `json:"data"` }
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
func NewFrontend ¶
func (*Frontend) BrowserOpenURL ¶
BrowserOpenURL Use the default browser to open the url
func (*Frontend) ClipboardGetText ¶
func (*Frontend) ClipboardSetText ¶
func (*Frontend) MenuSetApplicationMenu ¶
func (*Frontend) MenuUpdateApplicationMenu ¶
func (f *Frontend) MenuUpdateApplicationMenu()
func (*Frontend) MessageDialog ¶
func (f *Frontend) MessageDialog(options frontend.MessageDialogOptions) (string, error)
MessageDialog show a message dialog to the user
func (*Frontend) OpenDirectoryDialog ¶
func (f *Frontend) OpenDirectoryDialog(options frontend.OpenDialogOptions) (string, error)
OpenDirectoryDialog prompts the user to select a directory
func (*Frontend) OpenFileDialog ¶
func (f *Frontend) OpenFileDialog(options frontend.OpenDialogOptions) (string, error)
OpenFileDialog prompts the user to select a file
func (*Frontend) OpenMultipleFilesDialog ¶
func (f *Frontend) OpenMultipleFilesDialog(options frontend.OpenDialogOptions) ([]string, error)
OpenMultipleFilesDialog prompts the user to select a file
func (*Frontend) RunMainLoop ¶
func (f *Frontend) RunMainLoop()
func (*Frontend) SaveFileDialog ¶
func (f *Frontend) SaveFileDialog(options frontend.SaveDialogOptions) (string, error)
SaveFileDialog prompts the user to select a file
func (*Frontend) ScreenGetAll ¶
func (*Frontend) ShowWindow ¶
func (f *Frontend) ShowWindow()
func (*Frontend) WindowCenter ¶
func (f *Frontend) WindowCenter()
func (*Frontend) WindowClose ¶
func (f *Frontend) WindowClose()
func (*Frontend) WindowFullscreen ¶
func (f *Frontend) WindowFullscreen()
func (*Frontend) WindowGetPosition ¶
func (*Frontend) WindowGetSize ¶
func (*Frontend) WindowHide ¶
func (f *Frontend) WindowHide()
func (*Frontend) WindowIsFullscreen ¶
func (*Frontend) WindowIsMaximised ¶
func (*Frontend) WindowIsMinimised ¶
func (*Frontend) WindowIsNormal ¶
func (*Frontend) WindowMaximise ¶
func (f *Frontend) WindowMaximise()
func (*Frontend) WindowMinimise ¶
func (f *Frontend) WindowMinimise()
func (*Frontend) WindowPrint ¶
func (f *Frontend) WindowPrint()
func (*Frontend) WindowReload ¶
func (f *Frontend) WindowReload()
func (*Frontend) WindowReloadApp ¶
func (f *Frontend) WindowReloadApp()
func (*Frontend) WindowSetAlwaysOnTop ¶
func (*Frontend) WindowSetBackgroundColour ¶
func (*Frontend) WindowSetDarkTheme ¶
func (f *Frontend) WindowSetDarkTheme()
func (*Frontend) WindowSetLightTheme ¶
func (f *Frontend) WindowSetLightTheme()
func (*Frontend) WindowSetMaxSize ¶
func (*Frontend) WindowSetMinSize ¶
func (*Frontend) WindowSetPosition ¶
func (*Frontend) WindowSetSize ¶
func (*Frontend) WindowSetSystemDefaultTheme ¶
func (f *Frontend) WindowSetSystemDefaultTheme()
func (*Frontend) WindowSetTitle ¶
func (*Frontend) WindowShow ¶
func (f *Frontend) WindowShow()
func (*Frontend) WindowToggleMaximise ¶
func (f *Frontend) WindowToggleMaximise()
func (*Frontend) WindowUnfullscreen ¶
func (f *Frontend) WindowUnfullscreen()
func (*Frontend) WindowUnmaximise ¶
func (f *Frontend) WindowUnmaximise()
func (*Frontend) WindowUnminimise ¶
func (f *Frontend) WindowUnminimise()
type ScreenContainer ¶
type ScreenContainer struct {
// contains filtered or unexported fields
}
type Window ¶
type Window struct { winc.Form OnSuspend func() OnResume func() // contains filtered or unexported fields }
func NewWindow ¶
func NewWindow(parent winc.Controller, appoptions *options.App, versionInfo *operatingsystem.WindowsVersionInfo, chromium *edge.Chromium) *Window
func (*Window) Fullscreen ¶
func (w *Window) Fullscreen()
func (*Window) IsFullScreen ¶
func (*Window) IsMaximised ¶
func (*Window) IsMinimised ¶
func (*Window) SetApplicationMenu ¶
func (*Window) SetMaxSize ¶
func (*Window) SetMinSize ¶
func (*Window) SetTheme ¶
func (w *Window) SetTheme(theme winoptions.Theme)
func (*Window) UnFullscreen ¶
func (w *Window) UnFullscreen()
func (*Window) UpdateTheme ¶
func (w *Window) UpdateTheme()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.