Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rivo/tview
/ functions
Functions
690 in github.com/rivo/tview
⨍
Functions
690
◇
Types & classes
50
Method
SetAlign
SetAlign sets the cell's text alignment, one of AlignLeft, AlignCenter, or AlignRight.
table.go:91
Method
SetAlign
SetAlign controls the horizontal alignment of the node texts. If set to true, all texts except that of top-level nodes will be placed in the same colu
treeview.go:452
Method
SetAspectRatio
SetAspectRatio sets the width of a terminal's cell divided by its height. You may change the default of 0.5 if your terminal / font has a different as
image.go:191
Method
SetAttributes
SetAttributes sets the cell's text attributes. You can combine different attributes using bitmask operations: cell.SetAttributes(tcell.AttrItalic |
table.go:159
Method
SetAutocompleteStyles
SetAutocompleteStyles sets the colors and style of the autocomplete entries. For details, see [List.SetMainTextStyle], [List.SetSelectedStyle], and [B
inputfield.go:255
Method
SetAutocompleteUseTags
SetAutocompleteUseTags sets whether or not the autocomplete entries may contain style tags affecting their appearance. The default is true.
inputfield.go:264
Method
SetBackgroundColor
SetBackgroundColor sets the cell's background color. This will also cause the cell's Transparent flag to be set to "false".
table.go:137
Method
SetBackgroundColor
SetBackgroundColor overrides its implementation in Box to set the background color of this primitive. For backwards compatibility reasons, it also set
textview.go:368
Method
SetBackgroundColorActivated
SetBackgroundColorActivated sets the background color of the button text when the button is in focus.
button.go:82
Method
SetBeforeDrawFunc
SetBeforeDrawFunc installs a callback function which is invoked just before the root primitive is drawn during screen updates. If the function returns
application.go:775
Method
SetBlurFunc
SetBlurFunc sets a callback function which is invoked when this primitive loses focus. This does not apply to container primitives such as [Flex] or [
box.go:462
Method
SetBorderColor
SetBorderColor sets the box's border color.
box.go:309
Method
SetBorderStyle
SetBorderStyle sets the box's border style.
box.go:303
Method
SetBorders
SetBorders sets whether or not each cell in the table is surrounded by a border.
table.go:574
Method
SetBorders
SetBorders sets the width of the frame borders as well as "header" and "footer", the vertical space between the header and footer text and the contain
frame.go:99
Method
SetBordersColor
SetBordersColor sets the color of the cell borders.
table.go:580
Method
SetButtonActivatedStyle
SetButtonActivatedStyle sets the style of the buttons when they are focused.
modal.go:86
Method
SetButtonActivatedStyle
SetButtonActivatedStyle sets the style of the buttons when they are focused.
form.go:197
Method
SetButtonBackgroundColor
SetButtonBackgroundColor sets the background color of the buttons. This is also the text color of the buttons when they are focused.
form.go:176
Method
SetButtonDisabledStyle
SetButtonDisabledStyle sets the style of the buttons when they are disabled.
form.go:203
Method
SetButtonStyle
SetButtonStyle sets the style of the buttons when they are not focused.
modal.go:80
Method
SetButtonStyle
SetButtonStyle sets the style of the buttons when they are not focused.
form.go:191
Method
SetButtonTextColor
SetButtonTextColor sets the color of the button texts. This is also the background of the buttons when they are focused.
form.go:184
Method
SetCell
SetCell does not do anything.
table.go:286
Method
SetCell
SetCell sets a cell's content.
table.go:332
Method
SetChangedFunc
SetChangedFunc sets a handler which is called whenever the text of the text area has changed.
textarea.go:953
Method
SetChangedFunc
SetChangedFunc sets a handler which is called whenever the visibility or the order of any visible pages changes. This can be used to redraw the pages.
pages.go:45
Method
SetChangedFunc
SetChangedFunc sets the function which is called when the currently selected node changes, for example when the user navigates to a new tree node.
treeview.go:472
Method
SetChangedFunc
SetChangedFunc sets a handler function which is called when the text of the text view has changed. This is useful when text is written to this [io.Wri
textview.go:504
Method
SetChangedFunc
SetChangedFunc sets a handler which is called when the checked state of this checkbox was changed. The handler function receives the new state.
checkbox.go:203
Method
SetCheckedString
SetCheckedString sets the string to be displayed when the checkbox is checked (defaults to "X"). The string may contain color tags (consider adapting
checkbox.go:158
Method
SetCheckedStyle
SetCheckedStyle sets the style of the checked checkbox.
checkbox.go:142
Method
SetChildren
SetChildren sets this node's child nodes.
treeview.go:111
Method
SetClickedFunc
SetClickedFunc sets a handler which fires when this cell is clicked. This is independent of whether the cell is selectable or not. But for selectable
table.go:218
Method
SetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
inputfield.go:293
Method
SetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
dropdown.go:307
Method
SetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
textarea.go:835
Method
SetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
image.go:255
Method
SetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
textview.go:299
Method
SetDisabled
SetDisabled sets whether or not the button is disabled. Disabled buttons cannot be activated. If the button is part of a form, you should set focus t
button.go:104
Method
SetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
checkbox.go:193
Method
SetDisabledStyle
SetDisabledStyle sets the style of the options area when the drop-down is disabled.
dropdown.go:239
Method
SetDoneFunc
SetDoneFunc sets a handler which is called when the user is done entering text. The callback function is provided with the key that was pressed, which
inputfield.go:440
Method
SetDoneFunc
SetDoneFunc sets a handler which is called when the user is done selecting options. The callback function is provided with the key that was pressed, w
dropdown.go:371
Method
SetDoneFunc
SetDoneFunc sets a handler which is called whenever the user presses the Escape, Tab, or Backtab key. If nothing is selected, it is also called when u
table.go:709
Method
SetDoneFunc
SetDoneFunc sets a handler which is called when one of the buttons was pressed. It receives the index of the button as well as its label text. The han
modal.go:95
Method
SetDoneFunc
SetDoneFunc sets a handler which is called whenever the user presses the Escape, Tab, or Backtab key.
treeview.go:492
Method
SetDoneFunc
SetDoneFunc sets a handler which is called when the user presses on the following keys: Escape, Enter, Tab, Backtab. The key is passed to the handler.
textview.go:512
Method
SetDoneFunc
SetDoneFunc sets a handler which is called when the user is done using the checkbox. The callback function is provided with the key that was pressed,
checkbox.go:215
Method
SetDrawFunc
SetDrawFunc sets a callback function which is invoked after the box primitive has been drawn. This allows you to add a more individual style to the bo
box.go:145
Method
SetEvaluateAllRows
SetEvaluateAllRows sets a flag which determines the rows to be evaluated when calculating the widths of the table's columns. When false, only visible
table.go:682
Method
SetFieldBackgroundColor
SetFieldBackgroundColor sets the background color of the input area.
inputfield.go:209
Method
SetFieldBackgroundColor
SetFieldBackgroundColor sets the background color of the selected field. This also overrides the prefix background color.
dropdown.go:212
Method
SetFieldBackgroundColor
SetFieldBackgroundColor sets the background color of the input areas.
form.go:149
Method
SetFieldStyle
SetFieldStyle sets the style of the input area (when no placeholder is shown).
inputfield.go:222
Method
SetFieldStyle
SetFieldStyle sets the style of the input areas. Attributes are currently still ignored to maintain backwards compatibility.
form.go:162
Method
SetFieldTextColor
SetFieldTextColor sets the text color of the input area.
inputfield.go:215
Method
SetFieldTextColor
SetFieldTextColor sets the text color of the options area.
dropdown.go:219
Method
SetFieldTextColor
SetFieldTextColor sets the text color of the input areas.
form.go:155
Method
SetFieldWidth
SetFieldWidth sets the screen width of the input area. A value of 0 means extend as much as possible.
inputfield.go:277
Method
SetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
inputfield.go:446
Method
SetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
dropdown.go:377
Method
SetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
textarea.go:966
Method
SetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
image.go:280
Method
SetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
textview.go:531
Method
SetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
checkbox.go:221
Method
SetFocus
SetFocus shifts the focus to the button with the given index.
modal.go:140
Method
SetFocusedStyle
SetFocusedStyle sets the style of the options area when the drop-down is focused and closed.
dropdown.go:232
Method
SetFormAttributes
SetFormAttributes sets attributes shared by all form items.
inputfield.go:270
Method
SetFormAttributes
SetFormAttributes sets attributes shared by all form items.
dropdown.go:271
Method
SetFormAttributes
SetFormAttributes sets attributes shared by all form items.
textarea.go:984
Method
SetFormAttributes
SetFormAttributes sets attributes shared by all form items.
image.go:260
Method
SetFormAttributes
SetFormAttributes sets attributes shared by all form items.
textview.go:537
Method
SetFormAttributes
SetFormAttributes sets attributes shared by all form items.
checkbox.go:173
Method
SetFullScreen
SetFullScreen sets the flag which, when true, causes the flex layout to use the entire screen space instead of whatever size it is currently assigned
flex.go:77
Method
SetGap
SetGap sets the size of the gaps between neighboring primitives on the grid. If borders are drawn (see SetBorders()), these values are ignored and a g
grid.go:152
Method
SetGraphicsColor
SetGraphicsColor sets the colors of the lines used to draw the tree structure.
treeview.go:465
Method
SetHorizontal
SetHorizontal sets the direction the form elements are laid out. If set to true, instead of positioning them from top to bottom (the default), they ar
form.go:137
Method
SetIndent
SetIndent sets an additional indentation for this node's text. A value of 0 keeps the text as far left as possible with a minimum of line graphics. An
treeview.go:252
Method
SetItemPadding
SetItemPadding sets the number of empty rows between form items for vertical layouts and the number of empty cells between form items for horizontal l
form.go:128
Method
SetLabel
SetLabel sets the text to be displayed before the input area.
inputfield.go:168
Method
SetLabel
SetLabel sets the text to be displayed before the input area.
dropdown.go:181
Method
SetLabel
SetLabel sets the text to be displayed before the text area.
textarea.go:792
Method
SetLabel
SetLabel sets the text to be displayed before the text view.
textview.go:261
Method
SetLabel
SetLabel sets the button text.
button.go:51
Method
SetLabel
SetLabel sets the text to be displayed before the input area.
checkbox.go:90
Method
SetLabelColor
SetLabelColor sets the text color of the label.
inputfield.go:192
Method
SetLabelColor
SetLabelColor sets the color of the labels.
form.go:143
Method
SetLabelColor
SetLabelColor sets the color of the button text.
button.go:62
Method
SetLabelColorActivated
SetLabelColorActivated sets the color of the button text when the button is in focus.
button.go:75
Method
SetLabelStyle
SetLabelStyle sets the style of the label.
dropdown.go:205
Method
SetLabelStyle
SetLabelStyle sets the style of the label.
textarea.go:865
Method
SetLabelStyle
SetLabelStyle sets the style of the label.
checkbox.go:114
Method
SetLabelWidth
SetLabelWidth sets the screen width of the label. A value of 0 will cause the primitive to use the width of the label string.
inputfield.go:180
Method
SetLabelWidth
SetLabelWidth sets the screen width of the label. A value of 0 will cause the primitive to use the width of the label string.
dropdown.go:193
Method
SetLabelWidth
SetLabelWidth sets the screen width of the label. A value of 0 will cause the primitive to use the width of the label string.
textarea.go:804
Method
SetLabelWidth
SetLabelWidth sets the screen width of the label. A value of 0 will cause the primitive to use the width of the label string.
image.go:224
Method
SetLabelWidth
SetLabelWidth sets the screen width of the label. A value of 0 will cause the primitive to use the width of the label string.
textview.go:273
Method
SetLabelWidth
SetLabelWidth sets the screen width of the label. A value of 0 will cause the primitive to use the width of the label string.
checkbox.go:102
Method
SetListStyles
SetListStyles sets the styles of the items in the drop-down list (unselected as well as selected items). Style attributes are currently ignored but ma
dropdown.go:263
← previous
next →
501–600 of 690, ranked by callers