crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
65328eb4
ROOT
/
widgets
/
barchart
/
barchart.go
Search
History
300 lines
|
ISO-8859-1
|
7 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
BarChart
values
:
[]int
max
:
int
mu
:
sync.Mutex
opts
:
*options
New
(opts ...Option)
:
*BarChart
textLoc
insideBar
:
textLoc
underBar
validateValues
(values []int, max int)
:
error
*BarChart
Draw
(cvs *canvas.Canvas)
:
error
drawText
(cvs *canvas.Canvas, i int, text string, color cell.Color, loc textLoc)
:
error
barWidth
(cvs *canvas.Canvas)
:
int
barHeight
(cvs *canvas.Canvas, i, value int)
:
int
barRect
(cvs *canvas.Canvas, i, value int)
:
(image.Rectangle, error)
barColor
(i int)
:
cell.Color
valColor
(i int)
:
cell.Color
label
(i int)
:
(string, cell.Color)
Values
(values []int, max int, opts ...Option)
:
error
Keyboard
(k *terminalapi.Keyboard)
:
error
Mouse
(m *terminalapi.Mouse)
:
error
Options
()
:
widgetapi.Options
minSize
()
:
image.Point
All occurrences
Please wait...
Page is in error, reload to recover