gui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() bool

Available checks whether the GUI is available.

func Init

func Init(display core.Display)

Init initialises GUI agent.

func RenderErrorMsg

func RenderErrorMsg(msg string)

RenderErrorMsg displays frame with `msg` text and "error" icon.

func RenderQRCode

func RenderQRCode(data string)

RenderQRCode displays frame with QR code of `data`.

func RenderSuccessMsg

func RenderSuccessMsg(msg string)

RenderSuccessMsg displays frame with `msg` text and "success" icon.

func RenderText

func RenderText(msg string)

RenderText displays frame with `msg` text.

func RenderTextWithIcon

func RenderTextWithIcon(text, icon string)

RenderTextWithIcon displays frame with `msg` text and `icon` image.

func RenderTextf

func RenderTextf(format string, a ...interface{})

func RenderWarningMsg

func RenderWarningMsg(msg string)

RenderWarningMsg displays frame with `msg` and "warning" icon.

func RenderWithChart

func RenderWithChart(msg string, v ...float64)

RenderWithChart displays frame with chart and `msg` text.

func ShowFrame

func ShowFrame()

ShowFrame displays frame with rendered context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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