MCPcopy Index your code

hub / github.com/rivo/tview / functions

Functions690 in github.com/rivo/tview

MethodDraw
Draw draws this primitive onto the screen.
form.go:507
MethodDraw
Draw draws this primitive onto the screen.
treeview.go:693
MethodDraw
Draw draws this primitive onto the screen.
box.go:365
MethodDraw
Draw draws this primitive onto the screen.
textview.go:1014
MethodDraw
Draw draws this primitive onto the screen.
button.go:133
MethodDraw
Draw draws this primitive onto the screen.
frame.go:105
MethodDraw
Draw draws this primitive onto the screen.
checkbox.go:239
MethodDraw
Draw draws this primitive onto the screen.
list.go:502
MethodDraw
Draw draws this primitive onto the screen.
demos/primitive/main.go:27
FunctionEnd
End shows the final slide.
demos/presentation/end.go:11
MethodExpand
Expand makes the child nodes of this node appear.
treeview.go:171
MethodFindItems
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
FunctionFlex
Flex demonstrates flexbox layout.
demos/presentation/flex.go:9
MethodFocus
Focus is called when this primitive receives focus.
inputfield.go:452
MethodFocus
Focus is called by the application when the primitive receives focus.
dropdown.go:657
MethodFocus
Focus is called when this primitive receives focus.
grid.go:249
MethodFocus
Focus is called when this primitive receives focus.
textarea.go:972
MethodFocus
Focus is called when this primitive receives focus.
image.go:286
MethodFocus
Focus is called when this primitive receives focus.
modal.go:146
MethodFocus
Focus is called when this primitive receives focus.
flex.go:207
MethodFocus
Focus is called when this primitive receives focus.
box.go:468
MethodFocus
Focus is called when this primitive receives focus.
textview.go:783
MethodFocus
Focus is called when this primitive receives focus.
frame.go:169
MethodFocus
Focus is called when this primitive receives focus.
checkbox.go:227
MethodForceDraw
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
FunctionForm
Form demonstrates forms.
demos/presentation/form.go:40
MethodGetAfterDrawFunc
GetAfterDrawFunc returns the callback function installed with SetAfterDrawFunc() or nil if none has been installed.
application.go:797
MethodGetBackgroundColor
GetBackgroundColor returns the box's background color.
box.go:336
MethodGetBeforeDrawFunc
GetBeforeDrawFunc returns the callback function installed with SetBeforeDrawFunc() or nil if none has been installed.
application.go:782
MethodGetBorderAttributes
GetBorderAttributes returns the border's style attributes.
box.go:324
MethodGetBorderColor
GetBorderColor returns the box's border color.
box.go:330
MethodGetButtonIndex
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
MethodGetCell
GetCell returns the cell at the given position.
table.go:393
MethodGetCell
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
MethodGetCell
(row, column int)
demos/table/virtualtable/main.go:14
MethodGetColumnCount
GetColumnCount returns the number of columns in the data set.
table.go:406
MethodGetColumnCount
GetColumnCount returns the (maximum) number of columns in the table.
table.go:785
MethodGetColumnCount
()
demos/table/virtualtable/main.go:31
MethodGetCurrentNode
GetCurrentNode returns the currently selected node or nil of no node is currently selected.
treeview.go:392
MethodGetDrawFunc
GetDrawFunc returns the callback function which was installed with SetDrawFunc() or nil if no such function has been installed.
box.go:152
MethodGetFieldHeight
GetFieldHeight returns this primitive's field height.
inputfield.go:288
MethodGetFieldHeight
GetFieldHeight returns this primitive's field height.
dropdown.go:302
MethodGetFieldHeight
GetFieldHeight returns this primitive's field height.
textarea.go:830
MethodGetFieldHeight
GetFieldHeight returns this primitive's field height.
textview.go:294
MethodGetFieldHeight
GetFieldHeight returns this primitive's field height.
checkbox.go:188
MethodGetFieldStyle
GetFieldStyle returns the style of the input area (when no placeholder is shown).
inputfield.go:229
MethodGetFieldWidth
GetFieldWidth returns this primitive's field width.
inputfield.go:283
MethodGetFieldWidth
GetFieldWidth returns this primitive's field screen width.
dropdown.go:287
MethodGetFieldWidth
GetFieldWidth returns this primitive's field width.
textarea.go:825
MethodGetFieldWidth
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
MethodGetFieldWidth
GetFieldWidth returns this primitive's field width.
textview.go:289
MethodGetFieldWidth
GetFieldWidth returns this primitive's field width.
checkbox.go:183
MethodGetFocus
GetFocus returns the primitive which has the current focus. If none has it, nil is returned.
application.go:859
MethodGetFocusedItemIndex
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
MethodGetFormItemByLabel
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
MethodGetFormItemCount
GetFormItemCount returns the number of items in the form (not including the buttons).
form.go:443
MethodGetFormItemIndex
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
MethodGetFrontPage
GetFrontPage returns the front-most visible page. If there are no visible pages, ("", nil) is returned.
pages.go:242
MethodGetInputCapture
GetInputCapture returns the function installed with SetInputCapture() or nil if no such function has been installed.
box.go:211
MethodGetInputCapture
GetInputCapture returns the function installed with SetInputCapture() or nil if no such function has been installed.
application.go:171
MethodGetItem
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
MethodGetItemCount
GetItemCount returns the number of items in the list.
list.go:428
MethodGetItemSelectedFunc
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
MethodGetLabel
GetLabel returns the text to be displayed before the input area.
inputfield.go:174
MethodGetLabel
GetLabel returns the text to be displayed before the input area.
dropdown.go:187
MethodGetLabel
GetLabel returns the text to be displayed before the text area.
textarea.go:798
MethodGetLabel
GetLabel returns the text to be displayed before the image.
image.go:218
MethodGetLabel
GetLabel returns the text to be displayed before the text view.
textview.go:267
MethodGetLabel
GetLabel returns the button text.
button.go:57
MethodGetLabel
GetLabel returns the text to be displayed before the input area.
checkbox.go:96
MethodGetLabelStyle
GetLabelStyle returns the style of the label.
textarea.go:871
MethodGetLabelStyle
GetLabelStyle returns the style of the label.
image.go:275
MethodGetLastPosition
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
MethodGetLevel
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
MethodGetMouseCapture
GetMouseCapture returns the function installed with SetMouseCapture() or nil if no such function has been installed.
box.go:284
MethodGetMouseCapture
GetMouseCapture returns the function installed with SetMouseCapture() or nil if no such function has been installed.
application.go:188
MethodGetOffset
GetOffset returns the current row and column offset (see SetOffset() for details).
grid.go:244
MethodGetOffset
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
MethodGetOffset
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
MethodGetOffset
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
MethodGetOptionCount
GetOptionCount returns the number of options in the drop-down.
dropdown.go:338
MethodGetOriginalLineCount
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
MethodGetPage
GetPage returns the page with the given name. If no such page exists, nil is returned.
pages.go:253
MethodGetPageCount
GetPageCount returns the number of pages currently stored in this object.
pages.go:51
MethodGetPageNames
GetPageNames returns all page names ordered from front to back, optionally limited to visible pages.
pages.go:57
MethodGetPath
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
MethodGetPlaceholderStyle
GetPlaceholderStyle returns the style of the placeholder text.
textarea.go:899
MethodGetRect
GetRect returns the current position of the primitive, x, y, width, and height.
primitive.go:14
MethodGetReference
GetReference returns this node's reference object.
treeview.go:106
MethodGetRegionText
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
MethodGetRowCount
GetRowCount returns the number of rows in the data set.
table.go:401
MethodGetRowCount
GetRowCount returns the number of rows in the table.
table.go:780
MethodGetRowCount
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
MethodGetRowCount
()
demos/table/virtualtable/main.go:27
MethodGetScrollOffset
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
MethodGetScrollOffset
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
MethodGetSelectable
GetSelectable returns what can be selected in a table. Refer to SetSelectable() for details.
table.go:631
MethodGetSelectedFunc
GetSelectedFunc returns the function set with [TreeView.SetSelectedFunc] or nil if no such function has been set.
treeview.go:486
MethodGetSelectedFunc
GetSelectedFunc returns the function set with [List.SetSelectedFunc] or nil if no such function was set.
list.go:349
MethodGetSelectedTextStyle
GetSelectedTextStyle returns the text style for this node when it is selected.
treeview.go:245
← previousnext →301–400 of 690, ranked by callers