interfaces

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 1 Imported by: 7

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

	// 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

type Runtime

type Runtime interface{}

Runtime interface

Jump to

Keyboard shortcuts

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