Documentation ¶
Overview ¶
Package asciigraph provides a simple plotting widget.
Index ¶
- func Render(w IAsciiGraph, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func RenderSize(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- type IAsciiGraph
- type IWidget
- type Widget
- func (w *Widget) GetConf() []asciigraph.Option
- func (w *Widget) GetData() []float64
- func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func (w *Widget) SetConf(conf []asciigraph.Option, app gowid.IApp)
- func (w *Widget) SetData(data []float64, app gowid.IApp)
- func (w *Widget) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(w IAsciiGraph, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
func RenderSize ¶
func RenderSize(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
TODO: ILineWidget?
Types ¶
type IAsciiGraph ¶
type IAsciiGraph interface { GetData() []float64 GetConf() []asciigraph.Option }
type IWidget ¶
type IWidget interface { gowid.IWidget IAsciiGraph }
type Widget ¶
type Widget struct { Data []float64 Conf []asciigraph.Option gowid.RejectUserInput gowid.NotSelectable }
func (*Widget) GetConf ¶
func (w *Widget) GetConf() []asciigraph.Option
func (*Widget) RenderSize ¶
func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
Click to show internal directories.
Click to hide internal directories.