MCPcopy Create free account

hub / github.com/MasahikoSawada/civ / functions

Functions57 in github.com/MasahikoSawada/civ

↓ 7 callersMethodMoveDown
(move int)
table.go:273
↓ 4 callersMethodMoveUp
(move int)
table.go:255
↓ 4 callersFunctiondrawCells
Actual drawing the given cells to the terminal
terminal.go:230
↓ 4 callersMethodisMovable
0: up, 1: right, 2:down, 3: left
table.go:206
↓ 3 callersFunctionGetMaxXY
()
terminal.go:253
↓ 3 callersFunctionoutputCells
(cells []termbox.Cell)
terminal.go:258
↓ 2 callersMethodDraw
()
civ.go:167
↓ 2 callersMethodFindColName
Return true and position if the given name is in col names
table.go:101
↓ 2 callersMethodInputChar
(r rune)
queryline.go:41
↓ 2 callersMethodIsColEnabled
(colNum int)
table.go:115
↓ 2 callersMethodSetMatched
(r int, c int, b int, e int)
table.go:149
↓ 2 callersMethodSetOffsetRow
(r int)
table.go:227
↓ 2 callersMethodcomputeHeight
Return the total size of visible rows.
table.go:186
↓ 2 callersMethodexecuteHideCommand
Hide the given columns
command.go:37
↓ 2 callersFunctionformatRow
This function creates a list of termbox.Cell from rowIdx'th row of the table.
terminal.go:35
↓ 2 callersMethodmaybeChangeMode
(key rune)
civ.go:144
↓ 2 callersFunctionpadSpaces
Return the padded cell
terminal.go:178
↓ 1 callersMethodAddDisabledCol
Add the idx'th column to disabled column list. That is, make it invisible
table.go:127
↓ 1 callersMethodBackwardChar
()
queryline.go:53
↓ 1 callersMethodClearAll
()
queryline.go:31
↓ 1 callersMethodClearQuery
()
queryline.go:26
↓ 1 callersMethodDeleteChar
()
queryline.go:65
↓ 1 callersMethodExecuteCommand
()
command.go:7
↓ 1 callersMethodMoveBackward
()
queryline.go:91
↓ 1 callersMethodMoveForward
()
queryline.go:85
↓ 1 callersMethodMoveLeft
(move int)
table.go:243
↓ 1 callersMethodMoveRight
(move int)
table.go:231
↓ 1 callersMethodMoveToEnd
()
queryline.go:101
↓ 1 callersMethodMoveToTop
()
queryline.go:97
↓ 1 callersMethodNEnabledCols
()
table.go:111
↓ 1 callersFunctionNewCiv
(data [][]string, dummyHeader bool)
civ.go:23
↓ 1 callersFunctionNewQueryLine
()
queryline.go:17
↓ 1 callersFunctionNewTable
(indata [][]string, dummyHeader bool)
table.go:42
↓ 1 callersFunctionNewTerminal
()
terminal.go:13
↓ 1 callersMethodQueryLen
()
queryline.go:37
↓ 1 callersMethodRemoveDisabledCol
Remove the idx'th column from disabled column list. That is, make it visible
table.go:133
↓ 1 callersMethodResetDisabledCol
()
table.go:154
↓ 1 callersMethodResetVisibility
()
table.go:158
↓ 1 callersMethodRun
()
civ.go:171
↓ 1 callersMethodSetRowVisibility
(rowIdx int, visible bool)
table.go:145
↓ 1 callersMethodTruncateChars
()
queryline.go:75
↓ 1 callersMethodcomputeWidth
Return the total size of visible cols. Note that c.width is the size of formatted cell, i.e. includes padding.
table.go:166
↓ 1 callersFunctiondrawQueryLine
Function to draw both prompt and query line
terminal.go:192
↓ 1 callersFunctiondrawTable
(tb *Table)
terminal.go:123
↓ 1 callersMethodexecuteExitCommand
(vargs []string)
command.go:31
↓ 1 callersMethodexecuteFilterCommand
()
command.go:98
↓ 1 callersMethodexecuteResetCommand
(vargs []string)
command.go:65
↓ 1 callersMethodexecuteSearchCommand
()
command.go:81
↓ 1 callersMethodexecuteShowCommand
(vargs []string)
command.go:73
↓ 1 callersMethodexecuteShowOnlyCommand
Show only the given colums by hidding other columns
command.go:46
↓ 1 callersFunctionformatCell
(cell Cell, maxSize int, isHeader bool)
terminal.go:80
↓ 1 callersMethodhandleKeyEvent
(event termbox.Event)
civ.go:135
↓ 1 callersMethodkeyEventInput
Key event used by command mode and search mode
civ.go:86
↓ 1 callersMethodkeyEventView
Key event used by view mode
civ.go:34
MethodDebugdump
()
table.go:291
MethodDraw
(ql *QueryLine, tb *Table)
terminal.go:21
Functionmain
()
cmd/civ/civ.go:12