MCPcopy Create free account

hub / github.com/rivo/tview / functions

Functions690 in github.com/rivo/tview

MethodSetAlign
SetAlign sets the cell's text alignment, one of AlignLeft, AlignCenter, or AlignRight.
table.go:91
MethodSetAlign
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
MethodSetAspectRatio
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
MethodSetAttributes
SetAttributes sets the cell's text attributes. You can combine different attributes using bitmask operations: cell.SetAttributes(tcell.AttrItalic |
table.go:159
MethodSetAutocompleteStyles
SetAutocompleteStyles sets the colors and style of the autocomplete entries. For details, see [List.SetMainTextStyle], [List.SetSelectedStyle], and [B
inputfield.go:255
MethodSetAutocompleteUseTags
SetAutocompleteUseTags sets whether or not the autocomplete entries may contain style tags affecting their appearance. The default is true.
inputfield.go:264
MethodSetBackgroundColor
SetBackgroundColor sets the cell's background color. This will also cause the cell's Transparent flag to be set to "false".
table.go:137
MethodSetBackgroundColor
SetBackgroundColor overrides its implementation in Box to set the background color of this primitive. For backwards compatibility reasons, it also set
textview.go:368
MethodSetBackgroundColorActivated
SetBackgroundColorActivated sets the background color of the button text when the button is in focus.
button.go:82
MethodSetBeforeDrawFunc
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
MethodSetBlurFunc
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
MethodSetBorderColor
SetBorderColor sets the box's border color.
box.go:309
MethodSetBorderStyle
SetBorderStyle sets the box's border style.
box.go:303
MethodSetBorders
SetBorders sets whether or not each cell in the table is surrounded by a border.
table.go:574
MethodSetBorders
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
MethodSetBordersColor
SetBordersColor sets the color of the cell borders.
table.go:580
MethodSetButtonActivatedStyle
SetButtonActivatedStyle sets the style of the buttons when they are focused.
modal.go:86
MethodSetButtonActivatedStyle
SetButtonActivatedStyle sets the style of the buttons when they are focused.
form.go:197
MethodSetButtonBackgroundColor
SetButtonBackgroundColor sets the background color of the buttons. This is also the text color of the buttons when they are focused.
form.go:176
MethodSetButtonDisabledStyle
SetButtonDisabledStyle sets the style of the buttons when they are disabled.
form.go:203
MethodSetButtonStyle
SetButtonStyle sets the style of the buttons when they are not focused.
modal.go:80
MethodSetButtonStyle
SetButtonStyle sets the style of the buttons when they are not focused.
form.go:191
MethodSetButtonTextColor
SetButtonTextColor sets the color of the button texts. This is also the background of the buttons when they are focused.
form.go:184
MethodSetCell
SetCell does not do anything.
table.go:286
MethodSetCell
SetCell sets a cell's content.
table.go:332
MethodSetChangedFunc
SetChangedFunc sets a handler which is called whenever the text of the text area has changed.
textarea.go:953
MethodSetChangedFunc
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
MethodSetChangedFunc
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
MethodSetChangedFunc
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
MethodSetChangedFunc
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
MethodSetCheckedString
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
MethodSetCheckedStyle
SetCheckedStyle sets the style of the checked checkbox.
checkbox.go:142
MethodSetChildren
SetChildren sets this node's child nodes.
treeview.go:111
MethodSetClickedFunc
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
MethodSetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
inputfield.go:293
MethodSetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
dropdown.go:307
MethodSetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
textarea.go:835
MethodSetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
image.go:255
MethodSetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
textview.go:299
MethodSetDisabled
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
MethodSetDisabled
SetDisabled sets whether or not the item is disabled / read-only.
checkbox.go:193
MethodSetDisabledStyle
SetDisabledStyle sets the style of the options area when the drop-down is disabled.
dropdown.go:239
MethodSetDoneFunc
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
MethodSetDoneFunc
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
MethodSetDoneFunc
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
MethodSetDoneFunc
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
MethodSetDoneFunc
SetDoneFunc sets a handler which is called whenever the user presses the Escape, Tab, or Backtab key.
treeview.go:492
MethodSetDoneFunc
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
MethodSetDoneFunc
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
MethodSetDrawFunc
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
MethodSetEvaluateAllRows
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
MethodSetFieldBackgroundColor
SetFieldBackgroundColor sets the background color of the input area.
inputfield.go:209
MethodSetFieldBackgroundColor
SetFieldBackgroundColor sets the background color of the selected field. This also overrides the prefix background color.
dropdown.go:212
MethodSetFieldBackgroundColor
SetFieldBackgroundColor sets the background color of the input areas.
form.go:149
MethodSetFieldStyle
SetFieldStyle sets the style of the input area (when no placeholder is shown).
inputfield.go:222
MethodSetFieldStyle
SetFieldStyle sets the style of the input areas. Attributes are currently still ignored to maintain backwards compatibility.
form.go:162
MethodSetFieldTextColor
SetFieldTextColor sets the text color of the input area.
inputfield.go:215
MethodSetFieldTextColor
SetFieldTextColor sets the text color of the options area.
dropdown.go:219
MethodSetFieldTextColor
SetFieldTextColor sets the text color of the input areas.
form.go:155
MethodSetFieldWidth
SetFieldWidth sets the screen width of the input area. A value of 0 means extend as much as possible.
inputfield.go:277
MethodSetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
inputfield.go:446
MethodSetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
dropdown.go:377
MethodSetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
textarea.go:966
MethodSetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
image.go:280
MethodSetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
textview.go:531
MethodSetFinishedFunc
SetFinishedFunc sets a callback invoked when the user leaves this form item.
checkbox.go:221
MethodSetFocus
SetFocus shifts the focus to the button with the given index.
modal.go:140
MethodSetFocusedStyle
SetFocusedStyle sets the style of the options area when the drop-down is focused and closed.
dropdown.go:232
MethodSetFormAttributes
SetFormAttributes sets attributes shared by all form items.
inputfield.go:270
MethodSetFormAttributes
SetFormAttributes sets attributes shared by all form items.
dropdown.go:271
MethodSetFormAttributes
SetFormAttributes sets attributes shared by all form items.
textarea.go:984
MethodSetFormAttributes
SetFormAttributes sets attributes shared by all form items.
image.go:260
MethodSetFormAttributes
SetFormAttributes sets attributes shared by all form items.
textview.go:537
MethodSetFormAttributes
SetFormAttributes sets attributes shared by all form items.
checkbox.go:173
MethodSetFullScreen
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
MethodSetGap
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
MethodSetGraphicsColor
SetGraphicsColor sets the colors of the lines used to draw the tree structure.
treeview.go:465
MethodSetHorizontal
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
MethodSetIndent
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
MethodSetItemPadding
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
MethodSetLabel
SetLabel sets the text to be displayed before the input area.
inputfield.go:168
MethodSetLabel
SetLabel sets the text to be displayed before the input area.
dropdown.go:181
MethodSetLabel
SetLabel sets the text to be displayed before the text area.
textarea.go:792
MethodSetLabel
SetLabel sets the text to be displayed before the text view.
textview.go:261
MethodSetLabel
SetLabel sets the button text.
button.go:51
MethodSetLabel
SetLabel sets the text to be displayed before the input area.
checkbox.go:90
MethodSetLabelColor
SetLabelColor sets the text color of the label.
inputfield.go:192
MethodSetLabelColor
SetLabelColor sets the color of the labels.
form.go:143
MethodSetLabelColor
SetLabelColor sets the color of the button text.
button.go:62
MethodSetLabelColorActivated
SetLabelColorActivated sets the color of the button text when the button is in focus.
button.go:75
MethodSetLabelStyle
SetLabelStyle sets the style of the label.
dropdown.go:205
MethodSetLabelStyle
SetLabelStyle sets the style of the label.
textarea.go:865
MethodSetLabelStyle
SetLabelStyle sets the style of the label.
checkbox.go:114
MethodSetLabelWidth
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
MethodSetLabelWidth
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
MethodSetLabelWidth
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
MethodSetLabelWidth
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
MethodSetLabelWidth
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
MethodSetLabelWidth
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
MethodSetListStyles
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
← previousnext →501–600 of 690, ranked by callers