Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig interface { GetWidth() int GetHeight() int GetTitle() string GetResizable() bool GetDefaultHTML() string GetDisableInspector() bool GetColour() string GetCSS() string GetJS() string }
AppConfig is the application config interface
type BindingManager ¶
type BindingManager interface { Bind(object interface{}) Start(renderer Renderer, runtime Runtime) error ProcessCall(callData *messages.CallData) (result interface{}, err error) Shutdown() }
BindingManager is the binding manager interface
type EventManager ¶
type EventManager interface { PushEvent(*messages.EventData) Emit(eventName string, optionalData ...interface{}) On(eventName string, callback func(...interface{})) Start(Renderer) Shutdown() }
EventManager is the event manager interface
type IPCManager ¶
type IPCManager interface { BindRenderer(Renderer) Dispatch(message string) Start(eventManager EventManager, bindingManager BindingManager) Shutdown() }
IPCManager is the event manager interface
type Renderer ¶
type Renderer interface { Initialise(AppConfig, IPCManager, EventManager) error Run() error EnableConsole() // Binding NewBinding(bindingName string) error Callback(data string) error // Events NotifyEvent(eventData *messages.EventData) error // Dialog Runtime SelectFile() string SelectDirectory() string SelectSaveFile() string // Window Runtime SetColour(string) error Fullscreen() UnFullscreen() SetTitle(title string) Close() }
Renderer is an interface describing a Wails target to render the app to
Click to show internal directories.
Click to hide internal directories.