renderer

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 10 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) Close

func (h *Bridge) Close()

Close is unsupported for Bridge but required for the Renderer interface

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

SelectFile is unsupported for Bridge but required for the Renderer interface

func (*Bridge) SelectSaveFile

func (h *Bridge) SelectSaveFile(title string, filter string) 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) SetMaxSize added in v1.13.0

func (h *Bridge) SetMaxSize(width, height int)

SetMaxSize is unsupported for Bridge but required for the Renderer interface

func (*Bridge) SetMinSize added in v1.13.0

func (h *Bridge) SetMinSize(width, height int)

SetMinSize 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

Jump to

Keyboard shortcuts

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