Documentation ¶
Index ¶
- Constants
- type Component
- func (c *Component) GetSeriesColorNames() []string
- func (c *Component) ID() string
- func (c *Component) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (c *Component) IsDial() bool
- func (c *Component) SetBackgroundColor(color tcell.Color)
- func (c *Component) SetBlurFunc(handler func(key tcell.Key)) *Component
- func (c *Component) SetFocusColorNames(fg, bg string)
- func (c *Component) SetLegend(l string)
- func (c *Component) SetSeriesColors(cc ...tcell.Color)
- type DotMatrix
- type Gauge
- type Matrix
- type Metric
- type Orientation
- type SparkLine
Constants ¶
View Source
const ( // DeltaSame represents no difference. DeltaSame delta = iota // DeltaMore represents a higher value. DeltaMore // DeltaLess represents a lower value. DeltaLess )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
Component represents a graphic component.
func (*Component) GetSeriesColorNames ¶
GetSeriesColorNames returns series colors by name.
func (*Component) InputHandler ¶
InputHandler returns the handler for this primitive.
func (*Component) SetBackgroundColor ¶
func (c *Component) SetBackgroundColor(color tcell.Color)
SetBackgroundColor sets the graph bg color.
func (*Component) SetBlurFunc ¶
SetBlurFunc sets a callback fn when component gets out of focus.
func (*Component) SetFocusColorNames ¶ added in v0.17.3
SetFocusColorNames sets the focus color names.
func (*Component) SetSeriesColors ¶
func (c *Component) SetSeriesColors(cc ...tcell.Color)
SetSeriesColors sets the component series colors.
type DotMatrix ¶
type DotMatrix struct {
// contains filtered or unexported fields
}
DotMatrix tracks a char matrix.
type Gauge ¶
type Gauge struct { *Component // contains filtered or unexported fields }
Gauge represents a gauge component.
func (*Gauge) SetResolution ¶ added in v0.17.3
SetResolution overrides the default number of digits to display.
type Metric ¶
type Metric struct {
S1, S2 int64
}
Metric tracks two series.
type SparkLine ¶
type SparkLine struct { *Component // contains filtered or unexported fields }
SparkLine represents a sparkline component.
func (*SparkLine) SetMultiSeries ¶ added in v0.17.2
SetMultiSeries indicates if multi series are in effect or not.
Click to show internal directories.
Click to hide internal directories.