renderer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBridge

func NewBridge() *bridge.Bridge

NewBridge returns a new Bridge struct

Types

type WebView

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

WebView defines the main webview application window Default values in []

func NewWebView

func NewWebView() *WebView

NewWebView returns a new WebView struct

func (*WebView) Close

func (w *WebView) Close()

Close closes the window

func (*WebView) EnableConsole

func (w *WebView) EnableConsole()

EnableConsole enables the console!

func (*WebView) Exit

func (w *WebView) Exit()

Exit closes the window

func (*WebView) Fullscreen

func (w *WebView) Fullscreen()

Fullscreen makes the main window go fullscreen

func (*WebView) Initialise

func (w *WebView) Initialise(config interfaces.AppConfig, ipc interfaces.IPCManager, eventManager interfaces.EventManager) error

Initialise sets up the WebView

func (*WebView) NewBinding

func (w *WebView) NewBinding(methodName string) error

NewBinding registers a new binding with the frontend

func (*WebView) NotifyEvent

func (w *WebView) NotifyEvent(event *messages.EventData) error

NotifyEvent notifies the frontend about a backend runtime event

func (*WebView) Run

func (w *WebView) Run() error

Run the window main loop

func (*WebView) SelectDirectory

func (w *WebView) SelectDirectory() string

SelectDirectory opens a dialog that allows the user to select a directory

func (*WebView) SelectFile

func (w *WebView) SelectFile() string

SelectFile opens a dialog that allows the user to select a file

func (*WebView) SelectSaveFile

func (w *WebView) SelectSaveFile() string

SelectSaveFile opens a dialog that allows the user to select a file to save

func (*WebView) SetColour

func (w *WebView) SetColour(colour string) error

SetColour sets the window colour

func (*WebView) SetTitle

func (w *WebView) SetTitle(title string)

SetTitle sets the window title

func (*WebView) UnFullscreen

func (w *WebView) UnFullscreen()

UnFullscreen returns the window to the position prior to a fullscreen call

Directories

Path Synopsis
Package webview implements Go bindings to https://github.com/zserge/webview C library.
Package webview implements Go bindings to https://github.com/zserge/webview C library.

Jump to

Keyboard shortcuts

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