darwin

package
v2.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllScreens

func GetAllScreens(wailsContext unsafe.Pointer) ([]frontend.Screen, error)

func HandleCustomProtocol

func HandleCustomProtocol(url *C.char)

func HandleOpenFile

func HandleOpenFile(filePath *C.char)

func HandleSecondInstanceData

func HandleSecondInstanceData(secondInstanceMessage *C.char)

func SetupSingleInstance

func SetupSingleInstance(uniqueID string)

Types

type Calloc

type Calloc struct {
	// contains filtered or unexported fields
}

Calloc handles alloc/dealloc of C data

func NewCalloc

func NewCalloc() Calloc

NewCalloc creates a new allocator

func (Calloc) Free

func (c Calloc) Free()

Free frees all allocated C memory

func (Calloc) String

func (c Calloc) String(in string) *C.char

String creates a new C string and retains a reference to it

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

func (f *Frontend) ClipboardGetText() (string, error)

func (*Frontend) ClipboardSetText

func (f *Frontend) ClipboardSetText(text string) error

func (*Frontend) ExecJS

func (f *Frontend) ExecJS(js string)

func (*Frontend) Hide

func (f *Frontend) Hide()

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(options frontend.OpenDialogOptions) ([]string, error)

OpenMultipleFilesDialog prompts the user to select a file

func (*Frontend) ProcessOpenFileEvent

func (f *Frontend) ProcessOpenFileEvent(filePath string)

func (*Frontend) ProcessOpenUrlEvent

func (f *Frontend) ProcessOpenUrlEvent(url string)

func (*Frontend) Quit

func (f *Frontend) Quit()

func (*Frontend) Run

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

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 (f *Frontend) ScreenGetAll() ([]frontend.Screen, error)

func (*Frontend) Show

func (f *Frontend) Show()

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 (f *Frontend) WindowGetPosition() (int, int)

func (*Frontend) WindowGetSize

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

func (*Frontend) WindowHide

func (f *Frontend) WindowHide()

func (*Frontend) WindowIsFullscreen

func (f *Frontend) WindowIsFullscreen() bool

func (*Frontend) WindowIsMaximised

func (f *Frontend) WindowIsMaximised() bool

func (*Frontend) WindowIsMinimised

func (f *Frontend) WindowIsMinimised() bool

func (*Frontend) WindowIsNormal

func (f *Frontend) WindowIsNormal() bool

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 (f *Frontend) WindowSetAlwaysOnTop(onTop bool)

func (*Frontend) WindowSetBackgroundColour

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

func (*Frontend) WindowSetDarkTheme

func (f *Frontend) WindowSetDarkTheme()

func (*Frontend) WindowSetLightTheme

func (f *Frontend) WindowSetLightTheme()

func (*Frontend) WindowSetMaxSize

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

func (*Frontend) WindowSetMinSize

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

func (*Frontend) WindowSetPosition

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

func (*Frontend) WindowSetSize

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

func (*Frontend) WindowSetSystemDefaultTheme

func (f *Frontend) WindowSetSystemDefaultTheme()

func (*Frontend) WindowSetTitle

func (f *Frontend) WindowSetTitle(title string)

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 MenuItem struct {
	// contains filtered or unexported fields
}

type NSMenu

type NSMenu struct {
	// contains filtered or unexported fields
}

func NewNSMenu

func NewNSMenu(context unsafe.Pointer, name string) *NSMenu

func (*NSMenu) AddMenuItem

func (m *NSMenu) AddMenuItem(menuItem *menu.MenuItem) *MenuItem

func (*NSMenu) AddSubMenu

func (m *NSMenu) AddSubMenu(label string) *NSMenu

func (*NSMenu) AppendRole

func (m *NSMenu) AppendRole(role menu.Role)

type Window

type Window struct {
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(frontendOptions *options.App, debug bool, devtools bool) *Window

func (*Window) Center

func (w *Window) Center()

func (*Window) ExecJS

func (w *Window) ExecJS(js string)

func (*Window) Fullscreen

func (w *Window) Fullscreen()

func (*Window) GetPosition

func (w *Window) GetPosition() (int, int)

func (*Window) Hide

func (w *Window) Hide()

func (*Window) HideApplication

func (w *Window) HideApplication()

func (*Window) IsFullScreen

func (w *Window) IsFullScreen() bool

func (*Window) IsMaximised

func (w *Window) IsMaximised() bool

func (*Window) IsMinimised

func (w *Window) IsMinimised() bool

func (*Window) IsNormal

func (w *Window) IsNormal() bool

func (*Window) Maximise

func (w *Window) Maximise()

func (*Window) Minimise

func (w *Window) Minimise()

func (Window) Print

func (w Window) Print()

func (*Window) Quit

func (w *Window) Quit()

func (*Window) Run

func (w *Window) Run(url string)

func (*Window) SetAlwaysOnTop

func (w *Window) SetAlwaysOnTop(onTop bool)

func (*Window) SetApplicationMenu

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

func (*Window) SetBackgroundColour

func (w *Window) SetBackgroundColour(r uint8, g uint8, b uint8, a uint8)

func (*Window) SetMaxSize

func (w *Window) SetMaxSize(width int, height int)

func (*Window) SetMinSize

func (w *Window) SetMinSize(width int, height int)

func (*Window) SetPosition

func (w *Window) SetPosition(x int, y int)

func (*Window) SetSize

func (w *Window) SetSize(width int, height int)

func (*Window) SetTitle

func (w *Window) SetTitle(title string)

func (*Window) Show

func (w *Window) Show()

func (*Window) ShowApplication

func (w *Window) ShowApplication()

func (*Window) Size

func (w *Window) Size() (int, int)

func (*Window) ToggleMaximise

func (w *Window) ToggleMaximise()

func (*Window) UnFullscreen

func (w *Window) UnFullscreen()

func (*Window) UnMaximise

func (w *Window) UnMaximise()

func (*Window) UnMinimise

func (w *Window) UnMinimise()

func (*Window) UpdateApplicationMenu

func (w *Window) UpdateApplicationMenu()

Jump to

Keyboard shortcuts

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