windows

package
v2.0.0-beta.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

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 NewFrontend(ctx context.Context, appoptions *options.App, myLogger *logger.Logger, appBindings *binding.Bindings, dispatcher frontend.Dispatcher) *Frontend

func (*Frontend) BrowserOpenURL

func (f *Frontend) BrowserOpenURL(url string)

BrowserOpenURL Use the default browser to open the url

func (*Frontend) Callback

func (f *Frontend) Callback(message string)

func (*Frontend) ExecJS

func (f *Frontend) ExecJS(js string)

func (*Frontend) MenuSetApplicationMenu

func (f *Frontend) MenuSetApplicationMenu(menu *menu.Menu)

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) Notify

func (f *Frontend) Notify(name string, data ...interface{})

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) Quit

func (f *Frontend) Quit()

func (*Frontend) Run

func (f *Frontend) Run(ctx context.Context) error

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) WindowGetPos

func (f *Frontend) WindowGetPos() (int, int)

func (*Frontend) WindowGetSize

func (f *Frontend) WindowGetSize() (int, int)

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 (f *Frontend) WindowSetMaxSize(width int, height int)

func (*Frontend) WindowSetMinSize

func (f *Frontend) WindowSetMinSize(width int, height int)

func (*Frontend) WindowSetPos

func (f *Frontend) WindowSetPos(x, y int)

func (*Frontend) WindowSetRGBA

func (f *Frontend) WindowSetRGBA(col *options.RGBA)

func (*Frontend) WindowSetSize

func (f *Frontend) WindowSetSize(width, height int)

func (*Frontend) WindowSetTitle

func (f *Frontend) WindowSetTitle(title string)

func (*Frontend) WindowShow

func (f *Frontend) WindowShow()

func (*Frontend) WindowUnFullscreen

func (f *Frontend) WindowUnFullscreen()

func (*Frontend) WindowUnmaximise

func (f *Frontend) WindowUnmaximise()

func (*Frontend) WindowUnminimise

func (f *Frontend) WindowUnminimise()

type Window

type Window struct {
	winc.Form
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(parent winc.Controller, appoptions *options.App) *Window

func (*Window) Run

func (w *Window) Run() int

func (*Window) SetApplicationMenu

func (w *Window) SetApplicationMenu(menu *menu.Menu)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL