renderer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

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

Bridge is a backend that opens a local web server and renders the files over a websocket

func (*Bridge) Callback

func (h *Bridge) Callback(data string) error

Callback sends a callback to the frontend

func (*Bridge) Close

func (h *Bridge) Close()

Close is unsupported for Bridge but required for the Renderer interface

func (*Bridge) EnableConsole added in v0.20.0

func (h *Bridge) EnableConsole()

EnableConsole not needed for bridge!

func (*Bridge) Fullscreen

func (h *Bridge) Fullscreen()

Fullscreen is unsupported for Bridge but required for the Renderer interface

func (*Bridge) Initialise

func (h *Bridge) Initialise(appConfig interfaces.AppConfig, ipcManager interfaces.IPCManager, eventManager interfaces.EventManager) error

Initialise the Bridge Renderer

func (*Bridge) NewBinding

func (h *Bridge) NewBinding(methodName string) error

NewBinding creates a new binding with the frontend

func (*Bridge) NotifyEvent

func (h *Bridge) NotifyEvent(event *messages.EventData) error

NotifyEvent notifies the frontend of an event

func (*Bridge) Run

func (h *Bridge) Run() error

Run the app in Bridge mode!

func (*Bridge) SelectDirectory

func (h *Bridge) SelectDirectory() string

SelectDirectory is unsupported for Bridge but required for the Renderer interface

func (*Bridge) SelectFile

func (h *Bridge) SelectFile() string

SelectFile is unsupported for Bridge but required for the Renderer interface

func (*Bridge) SelectSaveFile

func (h *Bridge) SelectSaveFile() string

SelectSaveFile is unsupported for Bridge but required for the Renderer interface

func (*Bridge) SetColour

func (h *Bridge) SetColour(colour string) error

SetColour is unsupported for Bridge but required for the Renderer interface

func (*Bridge) SetTitle

func (h *Bridge) SetTitle(title string)

SetTitle is currently unsupported for Bridge but required for the Renderer interface

func (*Bridge) UnFullscreen

func (h *Bridge) UnFullscreen()

UnFullscreen is unsupported for Bridge but required for the Renderer interface

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

func (w *WebView) Callback(data string) error

Callback sends a callback to the frontend

func (*WebView) Close

func (w *WebView) Close()

Close closes the window

func (*WebView) EnableConsole added in v0.20.0

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