Documentation ¶
Rendered for windows/amd64
Index ¶
- Variables
- type EventNotify
- type Frontend
- func (f *Frontend) BrowserOpenURL(url string)
- func (f *Frontend) Callback(message string)
- func (f *Frontend) ExecJS(js string)
- 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(dialogOptions frontend.OpenDialogOptions) ([]string, error)
- func (f *Frontend) Quit()
- func (f *Frontend) Run(ctx context.Context) error
- func (f *Frontend) SaveFileDialog(dialogOptions frontend.SaveDialogOptions) (string, error)
- func (f *Frontend) WindowCenter()
- func (f *Frontend) WindowFullscreen()
- func (f *Frontend) WindowGetPosition() (int, int)
- func (f *Frontend) WindowGetSize() (int, int)
- func (f *Frontend) WindowHide()
- func (f *Frontend) WindowMaximise()
- func (f *Frontend) WindowMinimise()
- func (f *Frontend) WindowReload()
- 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) WindowSetRGBA(col *options.RGBA)
- func (f *Frontend) WindowSetSize(width, height int)
- 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 Window
- func (w *Window) Fullscreen()
- func (w *Window) IsMaximised() bool
- func (w *Window) Run() int
- 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) UnFullscreen()
- func (w *Window) WndProc(msg uint32, wparam, lparam uintptr) uintptr
Constants ¶
This section is empty.
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 ¶
This section is empty.
Types ¶
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) 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(dialogOptions frontend.OpenDialogOptions) ([]string, error)
OpenMultipleFilesDialog prompts the user to select a file
func (*Frontend) SaveFileDialog ¶
func (f *Frontend) SaveFileDialog(dialogOptions frontend.SaveDialogOptions) (string, error)
SaveFileDialog prompts the user to select a file
func (*Frontend) WindowCenter ¶
func (f *Frontend) WindowCenter()
func (*Frontend) WindowFullscreen ¶
func (f *Frontend) WindowFullscreen()
func (*Frontend) WindowGetPosition ¶
func (*Frontend) WindowGetSize ¶
func (*Frontend) WindowHide ¶
func (f *Frontend) WindowHide()
func (*Frontend) WindowMaximise ¶
func (f *Frontend) WindowMaximise()
func (*Frontend) WindowMinimise ¶
func (f *Frontend) WindowMinimise()
func (*Frontend) WindowReload ¶
func (f *Frontend) WindowReload()
func (*Frontend) WindowSetMaxSize ¶
func (*Frontend) WindowSetMinSize ¶
func (*Frontend) WindowSetPosition ¶
func (*Frontend) WindowSetRGBA ¶
func (*Frontend) WindowSetSize ¶
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 Window ¶
func (*Window) Fullscreen ¶
func (w *Window) Fullscreen()
func (*Window) IsMaximised ¶
func (*Window) SetApplicationMenu ¶
func (*Window) SetMaxSize ¶
func (*Window) SetMinSize ¶
func (*Window) UnFullscreen ¶
func (w *Window) UnFullscreen()
Click to show internal directories.
Click to hide internal directories.