Documentation
¶
Index ¶
- type Bridge
- func (h *Bridge) Callback(data string) error
- func (h *Bridge) Close()
- func (h *Bridge) EnableConsole()
- func (h *Bridge) Fullscreen()
- func (h *Bridge) Initialise(appConfig interfaces.AppConfig, ipcManager interfaces.IPCManager, ...) error
- func (h *Bridge) NewBinding(methodName string) error
- func (h *Bridge) NotifyEvent(event *messages.EventData) error
- func (h *Bridge) Run() error
- func (h *Bridge) SelectDirectory() string
- func (h *Bridge) SelectFile() string
- func (h *Bridge) SelectSaveFile() string
- func (h *Bridge) SetColour(colour string) error
- func (h *Bridge) SetTitle(title string)
- func (h *Bridge) UnFullscreen()
- type WebView
- func (w *WebView) Callback(data string) error
- func (w *WebView) Close()
- func (w *WebView) EnableConsole()
- func (w *WebView) Exit()
- func (w *WebView) Fullscreen()
- func (w *WebView) Initialise(config interfaces.AppConfig, ipc interfaces.IPCManager, ...) error
- func (w *WebView) NewBinding(methodName string) error
- func (w *WebView) NotifyEvent(event *messages.EventData) error
- func (w *WebView) Run() error
- func (w *WebView) SelectDirectory() string
- func (w *WebView) SelectFile() string
- func (w *WebView) SelectSaveFile() string
- func (w *WebView) SetColour(colour string) error
- func (w *WebView) SetTitle(title string)
- func (w *WebView) UnFullscreen()
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) 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 ¶
NewBinding creates a new binding with the frontend
func (*Bridge) NotifyEvent ¶
NotifyEvent notifies the frontend of an event
func (*Bridge) SelectDirectory ¶
SelectDirectory is unsupported for Bridge but required for the Renderer interface
func (*Bridge) SelectFile ¶
SelectFile is unsupported for Bridge but required for the Renderer interface
func (*Bridge) SelectSaveFile ¶
SelectSaveFile is unsupported for Bridge but required for the Renderer interface
func (*Bridge) SetColour ¶
SetColour is unsupported for Bridge but required for the Renderer interface
func (*Bridge) SetTitle ¶
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 (*WebView) EnableConsole ¶ added in v0.20.0
func (w *WebView) EnableConsole()
EnableConsole enables the console!
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 ¶
NewBinding registers a new binding with the frontend
func (*WebView) NotifyEvent ¶
NotifyEvent notifies the frontend about a backend runtime event
func (*WebView) SelectDirectory ¶
SelectDirectory opens a dialog that allows the user to select a directory
func (*WebView) SelectFile ¶
SelectFile opens a dialog that allows the user to select a file
func (*WebView) SelectSaveFile ¶
SelectSaveFile opens a dialog that allows the user to select a file to save
func (*WebView) UnFullscreen ¶
func (w *WebView) UnFullscreen()
UnFullscreen returns the window to the position prior to a fullscreen call