renderer

package
v0.17.4-pre Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 Headless

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

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

func (*Headless) Callback

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

Callback sends a callback to the frontend

func (*Headless) Close

func (h *Headless) Close()

Close is unsupported for Headless but required for the Renderer interface

func (*Headless) Fullscreen

func (h *Headless) Fullscreen()

Fullscreen is unsupported for Headless but required for the Renderer interface

func (*Headless) Initialise

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

Initialise the Headless Renderer

func (*Headless) NewBinding

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

NewBinding creates a new binding with the frontend

func (*Headless) NotifyEvent

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

NotifyEvent notifies the frontend of an event

func (*Headless) Run

func (h *Headless) Run() error

Run the app in headless mode!

func (*Headless) SelectDirectory

func (h *Headless) SelectDirectory() string

SelectDirectory is unsupported for Headless but required for the Renderer interface

func (*Headless) SelectFile

func (h *Headless) SelectFile() string

SelectFile is unsupported for Headless but required for the Renderer interface

func (*Headless) SelectSaveFile

func (h *Headless) SelectSaveFile() string

SelectSaveFile is unsupported for Headless but required for the Renderer interface

func (*Headless) SetColour

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

SetColour is unsupported for Headless but required for the Renderer interface

func (*Headless) SetTitle

func (h *Headless) SetTitle(title string)

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

func (*Headless) UnFullscreen

func (h *Headless) UnFullscreen()

UnFullscreen is unsupported for Headless 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) 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

Jump to

Keyboard shortcuts

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