Documentation ¶
Overview ¶
Package bargraph provides a simple plotting widget.
Index ¶
- func Render(w IBarGraph, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func RenderSize(w gowid.IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- type IBarGraph
- type IWidget
- type Widget
- func (w *Widget) GetAttrs() []gowid.IColor
- func (w *Widget) GetData() [][]int
- func (w *Widget) GetMax() int
- 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) SetData(l [][]int, max int, app gowid.IApp)
- func (w *Widget) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderSize ¶
func RenderSize(w gowid.IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
Types ¶
type Widget ¶
type Widget struct { Data [][]int Max int Attrs []gowid.IColor gowid.RejectUserInput gowid.NotSelectable }
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.