Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/rivo/tview
/ functions
Functions
690 in github.com/rivo/tview
⨍
Functions
690
◇
Types & classes
50
Method
Draw
Draw draws this primitive onto the screen.
form.go:507
Method
Draw
Draw draws this primitive onto the screen.
treeview.go:693
Method
Draw
Draw draws this primitive onto the screen.
box.go:365
Method
Draw
Draw draws this primitive onto the screen.
textview.go:1014
Method
Draw
Draw draws this primitive onto the screen.
button.go:133
Method
Draw
Draw draws this primitive onto the screen.
frame.go:105
Method
Draw
Draw draws this primitive onto the screen.
checkbox.go:239
Method
Draw
Draw draws this primitive onto the screen.
list.go:502
Method
Draw
Draw draws this primitive onto the screen.
demos/primitive/main.go:27
Function
End
End shows the final slide.
demos/presentation/end.go:11
Method
Expand
Expand makes the child nodes of this node appear.
treeview.go:171
Method
FindItems
FindItems searches the main and secondary texts for the given strings and returns a list of item indices in which those strings are found. One of the
list.go:464
Function
Flex
Flex demonstrates flexbox layout.
demos/presentation/flex.go:9
Method
Focus
Focus is called when this primitive receives focus.
inputfield.go:452
Method
Focus
Focus is called by the application when the primitive receives focus.
dropdown.go:657
Method
Focus
Focus is called when this primitive receives focus.
grid.go:249
Method
Focus
Focus is called when this primitive receives focus.
textarea.go:972
Method
Focus
Focus is called when this primitive receives focus.
image.go:286
Method
Focus
Focus is called when this primitive receives focus.
modal.go:146
Method
Focus
Focus is called when this primitive receives focus.
flex.go:207
Method
Focus
Focus is called when this primitive receives focus.
box.go:468
Method
Focus
Focus is called when this primitive receives focus.
textview.go:783
Method
Focus
Focus is called when this primitive receives focus.
frame.go:169
Method
Focus
Focus is called when this primitive receives focus.
checkbox.go:227
Method
ForceDraw
ForceDraw refreshes the screen immediately. Use this function with caution as it may lead to race conditions with updates to primitives in other gorou
application.go:698
Function
Form
Form demonstrates forms.
demos/presentation/form.go:40
Method
GetAfterDrawFunc
GetAfterDrawFunc returns the callback function installed with SetAfterDrawFunc() or nil if none has been installed.
application.go:797
Method
GetBackgroundColor
GetBackgroundColor returns the box's background color.
box.go:336
Method
GetBeforeDrawFunc
GetBeforeDrawFunc returns the callback function installed with SetBeforeDrawFunc() or nil if none has been installed.
application.go:782
Method
GetBorderAttributes
GetBorderAttributes returns the border's style attributes.
box.go:324
Method
GetBorderColor
GetBorderColor returns the box's border color.
box.go:330
Method
GetButtonIndex
GetButtonIndex returns the index of the button with the given label, starting with 0 for the button that was added first. If no such label was found,
form.go:400
Method
GetCell
GetCell returns the cell at the given position.
table.go:393
Method
GetCell
GetCell returns the contents of the cell at the specified position. A valid TableCell object is always returned but it will be uninitialized if the ce
table.go:740
Method
GetCell
(row, column int)
demos/table/virtualtable/main.go:14
Method
GetColumnCount
GetColumnCount returns the number of columns in the data set.
table.go:406
Method
GetColumnCount
GetColumnCount returns the (maximum) number of columns in the table.
table.go:785
Method
GetColumnCount
()
demos/table/virtualtable/main.go:31
Method
GetCurrentNode
GetCurrentNode returns the currently selected node or nil of no node is currently selected.
treeview.go:392
Method
GetDrawFunc
GetDrawFunc returns the callback function which was installed with SetDrawFunc() or nil if no such function has been installed.
box.go:152
Method
GetFieldHeight
GetFieldHeight returns this primitive's field height.
inputfield.go:288
Method
GetFieldHeight
GetFieldHeight returns this primitive's field height.
dropdown.go:302
Method
GetFieldHeight
GetFieldHeight returns this primitive's field height.
textarea.go:830
Method
GetFieldHeight
GetFieldHeight returns this primitive's field height.
textview.go:294
Method
GetFieldHeight
GetFieldHeight returns this primitive's field height.
checkbox.go:188
Method
GetFieldStyle
GetFieldStyle returns the style of the input area (when no placeholder is shown).
inputfield.go:229
Method
GetFieldWidth
GetFieldWidth returns this primitive's field width.
inputfield.go:283
Method
GetFieldWidth
GetFieldWidth returns this primitive's field screen width.
dropdown.go:287
Method
GetFieldWidth
GetFieldWidth returns this primitive's field width.
textarea.go:825
Method
GetFieldWidth
GetFieldWidth returns this primitive's field width. This is the image's width or, if the width is 0 or less, the proportional width of the image based
image.go:233
Method
GetFieldWidth
GetFieldWidth returns this primitive's field width.
textview.go:289
Method
GetFieldWidth
GetFieldWidth returns this primitive's field width.
checkbox.go:183
Method
GetFocus
GetFocus returns the primitive which has the current focus. If none has it, nil is returned.
application.go:859
Method
GetFocusedItemIndex
GetFocusedItemIndex returns the indices of the form element or button which currently has focus. If they don't, -1 is returned respectively.
form.go:488
Method
GetFormItemByLabel
GetFormItemByLabel returns the first form element with the given label. If no such element is found, nil is returned. Buttons are not searched and wil
form.go:465
Method
GetFormItemCount
GetFormItemCount returns the number of items in the form (not including the buttons).
form.go:443
Method
GetFormItemIndex
GetFormItemIndex returns the index of the first form element with the given label. If no such element is found, -1 is returned. Buttons are not search
form.go:477
Method
GetFrontPage
GetFrontPage returns the front-most visible page. If there are no visible pages, ("", nil) is returned.
pages.go:242
Method
GetInputCapture
GetInputCapture returns the function installed with SetInputCapture() or nil if no such function has been installed.
box.go:211
Method
GetInputCapture
GetInputCapture returns the function installed with SetInputCapture() or nil if no such function has been installed.
application.go:171
Method
GetItem
GetItem returns the primitive at the given index, starting with 0 for the first primitive in this container. This function will panic for out of rang
flex.go:121
Method
GetItemCount
GetItemCount returns the number of items in the list.
list.go:428
Method
GetItemSelectedFunc
GetItemSelectedFunc returns the function which is called when the user selects the item with the given index, if such a function was set. If no functi
list.go:435
Method
GetLabel
GetLabel returns the text to be displayed before the input area.
inputfield.go:174
Method
GetLabel
GetLabel returns the text to be displayed before the input area.
dropdown.go:187
Method
GetLabel
GetLabel returns the text to be displayed before the text area.
textarea.go:798
Method
GetLabel
GetLabel returns the text to be displayed before the image.
image.go:218
Method
GetLabel
GetLabel returns the text to be displayed before the text view.
textview.go:267
Method
GetLabel
GetLabel returns the button text.
button.go:57
Method
GetLabel
GetLabel returns the text to be displayed before the input area.
checkbox.go:96
Method
GetLabelStyle
GetLabelStyle returns the style of the label.
textarea.go:871
Method
GetLabelStyle
GetLabelStyle returns the style of the label.
image.go:275
Method
GetLastPosition
GetLastPosition returns the position of the table cell the last time it was drawn on screen. If the cell is not on screen, the return values are undef
table.go:211
Method
GetLevel
GetLevel returns the node's level within the hierarchy, where 0 corresponds to the root node, 1 corresponds to its children, and so on. This is only g
treeview.go:261
Method
GetMouseCapture
GetMouseCapture returns the function installed with SetMouseCapture() or nil if no such function has been installed.
box.go:284
Method
GetMouseCapture
GetMouseCapture returns the function installed with SetMouseCapture() or nil if no such function has been installed.
application.go:188
Method
GetOffset
GetOffset returns the current row and column offset (see SetOffset() for details).
grid.go:244
Method
GetOffset
GetOffset returns the text's offset, that is, the number of rows and columns skipped during drawing at the top or on the left, respectively. Note that
textarea.go:906
Method
GetOffset
GetOffset returns the current row and column offset. This indicates how many rows and columns the table is scrolled down and to the right.
table.go:669
Method
GetOffset
GetOffset returns the number of items skipped while drawing, as well as the number of cells item text is moved to the left. See also SetOffset() for m
list.go:165
Method
GetOptionCount
GetOptionCount returns the number of options in the drop-down.
dropdown.go:338
Method
GetOriginalLineCount
GetOriginalLineCount returns the number of lines in the original text buffer, without applying any wrapping. This is an expensive call as it needs to
textview.go:433
Method
GetPage
GetPage returns the page with the given name. If no such page exists, nil is returned.
pages.go:253
Method
GetPageCount
GetPageCount returns the number of pages currently stored in this object.
pages.go:51
Method
GetPageNames
GetPageNames returns all page names ordered from front to back, optionally limited to visible pages.
pages.go:57
Method
GetPath
GetPath returns all nodes located on the path from the root to the given node, including the root and the node itself. If there is no root node, nil i
treeview.go:400
Method
GetPlaceholderStyle
GetPlaceholderStyle returns the style of the placeholder text.
textarea.go:899
Method
GetRect
GetRect returns the current position of the primitive, x, y, width, and height.
primitive.go:14
Method
GetReference
GetReference returns this node's reference object.
treeview.go:106
Method
GetRegionText
GetRegionText returns the text of the first region with the given ID. If dynamic colors are enabled, style tags are stripped from the text. If the re
textview.go:739
Method
GetRowCount
GetRowCount returns the number of rows in the data set.
table.go:401
Method
GetRowCount
GetRowCount returns the number of rows in the table.
table.go:780
Method
GetRowCount
GetRowCount returns the number of "visible" nodes. This includes nodes which fall outside the tree view's box but notably does not include the childre
treeview.go:508
Method
GetRowCount
()
demos/table/virtualtable/main.go:27
Method
GetScrollOffset
GetScrollOffset returns the number of node rows that were skipped at the top of the tree view. Note that when the user navigates the tree view, this v
treeview.go:500
Method
GetScrollOffset
GetScrollOffset returns the number of rows and columns that are skipped at the top left corner when the text view has been scrolled.
textview.go:583
Method
GetSelectable
GetSelectable returns what can be selected in a table. Refer to SetSelectable() for details.
table.go:631
Method
GetSelectedFunc
GetSelectedFunc returns the function set with [TreeView.SetSelectedFunc] or nil if no such function has been set.
treeview.go:486
Method
GetSelectedFunc
GetSelectedFunc returns the function set with [List.SetSelectedFunc] or nil if no such function was set.
list.go:349
Method
GetSelectedTextStyle
GetSelectedTextStyle returns the text style for this node when it is selected.
treeview.go:245
← previous
next →
301–400 of 690, ranked by callers