renderer

package
v0.0.0-...-21d7e90 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseFirebug = ""

UseFirebug indicates whether to inject the firebug console

Functions

func NewBridge

func NewBridge() *bridge.Bridge

NewBridge returns a new Bridge struct

Types

type WebView

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

func NewWebView

func NewWebView() *WebView

NewWebView returns a new WebView struct

func (*WebView) Close

func (w *WebView) Close()

Close closes the window

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(title string, filter string) string

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

func (*WebView) SelectSaveFile

func (w *WebView) SelectSaveFile(title string, filter string) 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) SetMaxSize

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

SetMaxSize sets the maximum size of a resizable window

func (*WebView) SetMinSize

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

SetMinSize sets the minimum size of a resizable window

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