Documentation ¶
Overview ¶
Package gui implements different GUIs renderers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Image() *image.RGBA Dimensions() Dimensions WindowTitle() string KeyDown(key input.Key) KeyUp(key input.Key) }
Backend is an interface that gets implemented by the backend using the selected GUI.
type Dimensions ¶
Dimensions contains settings for the window dimensions of the rendered window.
type Initializer ¶
type Initializer func(backend Backend) (guiRender func() (bool, error), guiCleanup func(), err error)
Initializer defines a setup function for the selected GUI renderer.
var Setup Initializer
Setup will be set by the chosen and imported GUI renderer. This function is the entrypoint for code importing this package to start the GUI.
Click to show internal directories.
Click to hide internal directories.