Documentation
¶
Index ¶
- type Headless
- func (h *Headless) Callback(data string) error
- func (h *Headless) Close()
- func (h *Headless) Fullscreen()
- func (h *Headless) Initialise(appConfig interfaces.AppConfig, ipcManager interfaces.IPCManager, ...) error
- func (h *Headless) NewBinding(methodName string) error
- func (h *Headless) NotifyEvent(event *messages.EventData) error
- func (h *Headless) Run() error
- func (h *Headless) SelectDirectory() string
- func (h *Headless) SelectFile() string
- func (h *Headless) SelectSaveFile() string
- func (h *Headless) SetColour(colour string) error
- func (h *Headless) SetTitle(title string)
- func (h *Headless) UnFullscreen()
- type WebView
- func (w *WebView) Callback(data string) error
- func (w *WebView) Close()
- 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 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) 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 ¶
NewBinding creates a new binding with the frontend
func (*Headless) NotifyEvent ¶
NotifyEvent notifies the frontend of an event
func (*Headless) SelectDirectory ¶
SelectDirectory is unsupported for Headless but required for the Renderer interface
func (*Headless) SelectFile ¶
SelectFile is unsupported for Headless but required for the Renderer interface
func (*Headless) SelectSaveFile ¶
SelectSaveFile is unsupported for Headless but required for the Renderer interface
func (*Headless) SetColour ¶
SetColour is unsupported for Headless but required for the Renderer interface
func (*Headless) SetTitle ¶
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 (*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