Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gizak/termui
/ functions
Functions
157 in github.com/gizak/termui
⨍
Functions
157
◇
Types & classes
58
↓ 44 callers
Method
SetRect
(int, int, int, int)
v3/render.go:16
↓ 42 callers
Function
NewStyle
NewStyle takes 1 to 3 arguments 1st argument = Fg 2nd argument = optional Bg 3rd argument = optional Modifier
v3/style.go:51
↓ 38 callers
Method
SetCell
(c Cell, p image.Point)
v3/buffer.go:57
↓ 27 callers
Function
NewCell
NewCell takes 1 to 2 arguments 1st argument = rune 2nd argument = optional style
v3/buffer.go:27
↓ 14 callers
Method
Draw
(*Buffer)
v3/render.go:17
↓ 14 callers
Function
NewBlock
()
v3/block.go:33
↓ 11 callers
Method
SetString
(s string, style Style, p image.Point)
v3/buffer.go:69
↓ 10 callers
Function
SelectColor
(colors []Color, index int)
v3/utils.go:44
↓ 8 callers
Method
Fill
(c Cell, rect image.Rectangle)
v3/buffer.go:61
↓ 6 callers
Method
ScrollAmount
ScrollAmount scrolls by amount given. If amount is < 0, then scroll up. There is no need to set self.topRow, as this will be set automatically when dr
v3/widgets/tree.go:166
↓ 6 callers
Method
ScrollAmount
ScrollAmount scrolls by amount given. If amount is < 0, then scroll up. There is no need to set self.topRow, as this will be set automatically when dr
v3/widgets/list.go:91
↓ 6 callers
Function
SelectStyle
(styles []Style, index int)
v3/utils.go:48
↓ 6 callers
Method
prepareNodes
()
v3/widgets/tree.go:74
↓ 5 callers
Method
colorAverage
(x0, x1, y0, y1 int)
v3/widgets/image.go:105
↓ 4 callers
Function
BuildCellWithXArray
(cells []Cell)
v3/utils.go:222
↓ 4 callers
Function
FloorFloat64
(x float64)
v3/utils.go:115
↓ 4 callers
Function
ParseStyles
ParseStyles parses a string for embedded Styles and returns []Cell with the correct styling. Uses defaultStyle for any text without an embedded style.
v3/style_parser.go:77
↓ 4 callers
Function
RoundFloat64
(x float64)
v3/utils.go:111
↓ 4 callers
Function
TrimString
TrimString trims a string to a max length and adds '…' to the end if it was trimmed.
v3/utils.go:34
↓ 4 callers
Method
monochrome
(threshold uint8, invert bool)
v3/widgets/image.go:165
↓ 3 callers
Function
MinInt
(x, y int)
v3/utils.go:147
↓ 3 callers
Function
RunesToStyledCells
(runes []rune, style Style)
v3/utils.go:173
↓ 3 callers
Function
WrapCells
[]Cell ---------------------------------------------------------------------- WrapCells takes []Cell and inserts Cells containing '\n' wherever a line
v3/utils.go:157
↓ 2 callers
Function
AbsInt
(x int)
v3/utils.go:119
↓ 2 callers
Function
CellsToString
(cells []Cell)
v3/utils.go:181
↓ 2 callers
Function
GetMaxFloat64FromSlice
(slice []float64)
v3/utils.go:83
↓ 2 callers
Method
ScrollTop
()
v3/widgets/tree.go:212
↓ 2 callers
Method
ScrollTop
()
v3/widgets/list.go:130
↓ 2 callers
Method
SetPoint
(p image.Point, color Color)
v3/drawille/drawille.go:33
↓ 2 callers
Method
String
()
_examples/tree.go:14
↓ 2 callers
Function
SumFloat64Slice
(data []float64)
v3/utils.go:62
↓ 2 callers
Method
Walk
(fn TreeWalkFn)
v3/widgets/tree.go:92
↓ 2 callers
Function
absInt
(x int)
v3/drawille/drawille.go:85
↓ 2 callers
Method
at
computes the point at a given angle phi
v3/widgets/piechart.go:88
↓ 1 callers
Method
CollapseAll
()
v3/widgets/tree.go:251
↓ 1 callers
Method
Draw
(buf *Buffer)
v3/canvas.go:29
↓ 1 callers
Method
ExpandAll
()
v3/widgets/tree.go:241
↓ 1 callers
Method
FocusLeft
()
v3/widgets/tabs.go:33
↓ 1 callers
Method
FocusRight
()
v3/widgets/tabs.go:39
↓ 1 callers
Method
GetCells
()
v3/drawille/drawille.go:47
↓ 1 callers
Function
GetMaxFloat64From2dSlice
(slices [][]float64)
v3/utils.go:96
↓ 1 callers
Method
GetRect
()
v3/render.go:15
↓ 1 callers
Function
InterfaceSlice
InterfaceSlice takes an []interface{} represented as an interface{} and converts it https://stackoverflow.com/questions/12753805/type-converting-slice
v3/utils.go:18
↓ 1 callers
Function
MaxFloat64
(x, y float64)
v3/utils.go:133
↓ 1 callers
Function
MaxInt
(x, y int)
v3/utils.go:140
↓ 1 callers
Function
MinFloat64
(x, y float64)
v3/utils.go:126
↓ 1 callers
Function
NewBuffer
(r image.Rectangle)
v3/buffer.go:44
↓ 1 callers
Function
NewCanvas
()
v3/drawille/drawille.go:27
↓ 1 callers
Method
RGBA
()
v3/widgets/image.go:174
↓ 1 callers
Method
ScrollBottom
()
v3/widgets/tree.go:216
↓ 1 callers
Method
ScrollBottom
()
v3/widgets/list.go:134
↓ 1 callers
Method
ScrollDown
()
v3/widgets/tree.go:187
↓ 1 callers
Method
ScrollDown
()
v3/widgets/list.go:105
↓ 1 callers
Method
ScrollHalfPageDown
()
v3/widgets/tree.go:208
↓ 1 callers
Method
ScrollHalfPageDown
()
v3/widgets/list.go:126
↓ 1 callers
Method
ScrollHalfPageUp
()
v3/widgets/tree.go:204
↓ 1 callers
Method
ScrollHalfPageUp
()
v3/widgets/list.go:122
↓ 1 callers
Method
ScrollPageDown
()
v3/widgets/tree.go:200
↓ 1 callers
Method
ScrollPageDown
()
v3/widgets/list.go:118
↓ 1 callers
Method
ScrollPageUp
()
v3/widgets/tree.go:191
↓ 1 callers
Method
ScrollPageUp
()
v3/widgets/list.go:109
↓ 1 callers
Method
ScrollUp
()
v3/widgets/tree.go:183
↓ 1 callers
Method
ScrollUp
()
v3/widgets/list.go:101
↓ 1 callers
Method
Set
Set is used to add Columns and Rows to the grid. It recursively searches the GridItems, adding leaves to the grid and calculating the dimensions of th
v3/grid.go:72
↓ 1 callers
Method
SetLine
(p0, p1 image.Point, color Color)
v3/canvas.go:25
↓ 1 callers
Method
SetLine
(p0, p1 image.Point, color Color)
v3/drawille/drawille.go:41
↓ 1 callers
Method
SetNodes
(nodes []*TreeNode)
v3/widgets/tree.go:69
↓ 1 callers
Function
SplitCells
(cells []Cell, r rune)
v3/utils.go:200
↓ 1 callers
Method
ToggleExpand
()
v3/widgets/tree.go:233
↓ 1 callers
Function
TrimCells
(cells []Cell, w int)
v3/utils.go:189
↓ 1 callers
Method
add
(col color.Color)
v3/widgets/image.go:124
↓ 1 callers
Function
blocksChar
(ul, ur, ll, lr colorAverager, threshold uint8, invert bool)
v3/widgets/image.go:189
↓ 1 callers
Method
ch
()
v3/widgets/image.go:149
↓ 1 callers
Function
convertTermboxEvent
convertTermboxEvent turns a termbox event into a termui event.
v3/events.go:191
↓ 1 callers
Function
convertTermboxKeyboardEvent
convertTermboxKeyboardEvent converts a termbox keyboard event to a more friendly string format. Combines modifiers into the string instead of having t
v3/events.go:142
↓ 1 callers
Function
convertTermboxMouseEvent
(e tb.Event)
v3/events.go:173
↓ 1 callers
Method
draw
draws the line
v3/widgets/piechart.go:105
↓ 1 callers
Method
drawBorder
(buf *Buffer)
v3/block.go:46
↓ 1 callers
Method
fgColor
()
v3/widgets/image.go:145
↓ 1 callers
Function
is_target
(fpath)
_scripts/copyright_header.py:18
↓ 1 callers
Function
line
(p0, p1 image.Point)
v3/drawille/drawille.go:55
↓ 1 callers
Function
main
()
_scripts/copyright_header.py:42
↓ 1 callers
Method
parseStyles
(style Style)
v3/widgets/tree.go:28
↓ 1 callers
Method
plotAxes
(buf *Buffer, maxVal float64)
v3/widgets/plot.go:150
↓ 1 callers
Method
prepareNode
(node *TreeNode, level int)
v3/widgets/tree.go:81
↓ 1 callers
Function
readStyle
readStyle translates an []rune like `fg:red,mod:bold,bg:white` to a style
v3/style_parser.go:54
↓ 1 callers
Method
renderBraille
(buf *Buffer, drawArea image.Rectangle, maxVal float64)
v3/widgets/plot.go:79
↓ 1 callers
Method
renderDot
(buf *Buffer, drawArea image.Rectangle, maxVal float64)
v3/widgets/plot.go:121
↓ 1 callers
Method
setHelper
(item GridItem, parentWidthRatio, parentHeightRatio float64)
v3/grid.go:82
↓ 1 callers
Method
size
width and height of a line
v3/widgets/piechart.go:147
↓ 1 callers
Function
update_copyright
(fpath)
_scripts/copyright_header.py:24
↓ 1 callers
Method
walk
(n *TreeNode, fn TreeWalkFn)
v3/widgets/tree.go:100
Function
Clear
()
v3/backend.go:33
Function
Close
Close closes termbox-go.
v3/backend.go:23
Method
Collapse
()
v3/widgets/tree.go:220
Method
Draw
(buf *Buffer)
v3/grid.go:135
Method
Draw
Draw implements the Drawable interface.
v3/block.go:80
Method
Draw
(buf *Buffer)
v3/widgets/piechart.go:37
Method
Draw
(buf *Buffer)
v3/widgets/tree.go:114
Method
Draw
(buf *Buffer)
v3/widgets/image.go:30
next →
1–100 of 157, ranked by callers