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
GetSelection
GetSelection returns the currently selected text and its start and end positions within the entire text as a half-open interval. If the returned text
textarea.go:532
Method
GetSelection
GetSelection returns the position of the current selection. If entire rows are selected, the column index is undefined. Likewise for entire columns.
table.go:638
Method
GetText
GetText returns this node's text.
treeview.go:117
Method
GetText
GetText returns the current text of this text view. If "stripAllTags" is set to true, any region/style tags are stripped from the text. Note that any
textview.go:403
Method
GetTextStyle
GetTextStyle returns the text style for this node.
treeview.go:233
Method
GetTitle
GetTitle returns the box's current title.
box.go:347
Method
GetWrappedLineCount
GetWrappedLineCount returns the number of lines in the text view, taking wrapping into account (if activated). This is an even more expensive call tha
textview.go:461
Function
Grid
Grid demonstrates the grid layout.
demos/presentation/grid.go:9
Method
HasFocus
HasFocus returns whether or not this primitive has focus.
grid.go:260
Method
HasFocus
HasFocus returns whether or not this primitive has focus.
modal.go:151
Method
HasFocus
HasFocus returns whether or not this primitive has focus.
flex.go:218
Method
HasFocus
HasFocus returns whether or not this primitive has focus.
form.go:784
Method
HasFocus
HasFocus returns whether or not this primitive has focus.
box.go:484
Method
HasFocus
HasFocus returns whether the underlying TextView has focus.
textview.go:50
Method
HasFocus
HasFocus returns whether or not this primitive has focus.
textview.go:799
Method
HasFocus
HasFocus returns whether or not this primitive has focus.
frame.go:179
Method
HasPage
HasPage returns true if a page with the given name exists in this object.
pages.go:135
Method
HasSelection
HasSelection returns whether the selected text is non-empty.
textarea.go:519
Function
HelloWorld
HelloWorld shows a simple "Hello world" example.
demos/presentation/helloworld.go:24
Function
InputField
InputField demonstrates the InputField.
demos/presentation/inputfield.go:33
Method
InputHandler
InputHandler returns the handler for this primitive.
inputfield.go:535
Method
InputHandler
InputHandler returns the handler for this primitive.
dropdown.go:532
Method
InputHandler
InputHandler returns the handler for this primitive.
grid.go:657
Method
InputHandler
InputHandler returns the handler for this primitive.
textarea.go:1949
Method
InputHandler
InputHandler returns the handler for this primitive.
pages.go:329
Method
InputHandler
InputHandler returns the handler for this primitive.
table.go:1370
Method
InputHandler
InputHandler returns the handler for this primitive.
modal.go:205
Method
InputHandler
InputHandler returns the handler for this primitive.
flex.go:250
Method
InputHandler
InputHandler returns the handler for this primitive.
form.go:853
Method
InputHandler
InputHandler returns the handler for this primitive.
treeview.go:800
Method
InputHandler
InputHandler returns nil. Box has no default input handling.
box.go:173
Method
InputHandler
InputHandler returns the handler for this primitive.
textview.go:1322
Method
InputHandler
InputHandler returns the handler for this primitive.
button.go:155
Method
InputHandler
InputHandler returns the handler for this primitive.
frame.go:212
Method
InputHandler
InputHandler returns the handler for this primitive.
checkbox.go:282
Method
InputHandler
InputHandler returns the handler for this primitive.
list.go:610
Method
InputHandler
InputHandler returns the handler for this primitive.
demos/primitive/main.go:45
Method
InsertColumn
InsertColumn does not do anything.
table.go:306
Method
InsertColumn
InsertColumn inserts a new column at the given position.
table.go:381
Method
InsertColumn
InsertColumn inserts a column before the column with the given index. Cells in the given column and to its right will be shifted to the right by one c
table.go:774
Method
InsertRow
InsertRow does not do anything.
table.go:301
Method
InsertRow
InsertRow inserts a new row at the given position.
table.go:371
Method
InsertRow
InsertRow inserts a row before the row with the given index. Cells on the given row and below will be shifted to the bottom by one row. If "row" is eq
table.go:765
Function
Introduction
Introduction returns a tview.List with the highlights of the tview package.
demos/presentation/introduction.go:6
Method
IsChecked
IsChecked returns whether or not the box is checked.
checkbox.go:85
Method
IsOpen
IsOpen returns true if the drop-down list is currently open.
dropdown.go:652
Method
IsSentenceBoundary
IsSentenceBoundary returns true if the boundary between the returned grapheme cluster and the one following it is a sentence boundary.
strings.go:53
Method
IsWordBoundary
IsWordBoundary returns true if the boundary between the returned grapheme cluster and the one following it is a word boundary.
strings.go:47
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
inputfield.go:640
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
dropdown.go:681
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
grid.go:635
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
textarea.go:2340
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
pages.go:307
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
table.go:1690
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
modal.go:192
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
flex.go:228
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
form.go:809
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
treeview.go:867
Method
MouseHandler
MouseHandler returns nil. Box has no default mouse handling.
box.go:237
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
textview.go:1386
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
button.go:176
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
frame.go:187
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
checkbox.go:310
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
list.go:728
Method
MouseHandler
MouseHandler returns the mouse handler for this primitive.
demos/primitive/main.go:63
Method
Move
Move moves the selection (if a node is currently selected) or scrolls the tree view (if there is no selection), by the given offset (positive values t
treeview.go:519
Method
PasteHandler
PasteHandler returns the handler for this primitive.
inputfield.go:695
Method
PasteHandler
PasteHandler returns the handler for this primitive.
dropdown.go:729
Method
PasteHandler
PasteHandler returns the handler for this primitive.
grid.go:706
Method
PasteHandler
PasteHandler returns the handler for this primitive.
textarea.go:2438
Method
PasteHandler
PasteHandler returns the handler for this primitive.
pages.go:343
Method
PasteHandler
PasteHandler returns the handler for this primitive.
flex.go:264
Method
PasteHandler
PasteHandler returns the handler for this primitive.
form.go:876
Method
PasteHandler
PasteHandler returns nil. Box has no default paste handling.
box.go:187
Method
PasteHandler
PasteHandler returns the handler for this primitive.
frame.go:225
Function
PrintSimple
PrintSimple prints white text to the screen at the given position.
util.go:156
Method
QueueUpdateDraw
QueueUpdateDraw works like QueueUpdate() except it refreshes the screen immediately after executing f.
application.go:885
Method
RemoveButton
RemoveButton removes the button at the specified position, starting with 0 for the button that was added first.
form.go:387
Method
RemoveChild
RemoveChild removes a child node from this node. If the child node cannot be found, nothing happens.
treeview.go:140
Method
RemoveColumn
RemoveColumn does not do anything.
table.go:296
Method
RemoveColumn
RemoveColumn removes a column from the data.
table.go:358
Method
RemoveColumn
RemoveColumn removes the column at the given position from the table. If there is no such column, this has no effect.
table.go:757
Method
RemoveFormItem
RemoveFormItem removes the form element at the given position, starting with index 0. Elements are referenced in the order they were added. Buttons ar
form.go:457
Method
RemoveItem
RemoveItem removes all items for the given primitive from the container, keeping the order of the remaining items intact.
flex.go:103
Method
RemoveItem
RemoveItem removes the item with the given index (starting at 0) from the list. If a negative index is provided, items are referred to from the back (
list.go:177
Method
RemoveOption
RemoveOption removes the specified option from the drop-down. Panics if the index is out of range. If the currently selected option is removed, no opt
dropdown.go:345
Method
RemoveRow
RemoveRow does not do anything.
table.go:291
Method
RemoveRow
RemoveRow removes a row from the data.
table.go:350
Method
RemoveRow
RemoveRow removes the row at the given position from the table. If there is no such row, this has no effect.
table.go:750
Method
ResizeItem
ResizeItem sets a new size for the item(s) with the given primitive. If there are multiple Flex items with the same primitive, they will all receive t
flex.go:134
Method
ResizeToFullScreen
ResizeToFullScreen resizes the given primitive such that it fills the entire screen.
application.go:824
Method
ScrollTo
ScrollTo scrolls to the specified row and column (both starting with 0).
textview.go:547
Method
ScrollToBeginning
ScrollToBeginning scrolls the table to the beginning to that the top left corner of the table is shown. Note that this position may be corrected if th
table.go:838
Method
ScrollToBeginning
ScrollToBeginning scrolls to the top left corner of the text if the text view is scrollable.
textview.go:559
Method
ScrollToEnd
ScrollToEnd scrolls the table to the beginning to that the bottom left corner of the table is shown. Adding more rows to the table will cause it to au
table.go:849
Method
ScrollToEnd
ScrollToEnd scrolls to the bottom left corner of the text if the text view is scrollable. Adding new rows to the end of the text view will cause it to
textview.go:572
Method
SendToBack
SendToBack changes the order of the pages such that the page with the given name comes first, causing it to be drawn first with the next update (if vi
pages.go:222
Method
SendToFront
SendToFront changes the order of the pages such that the page with the given name comes last, causing it to be drawn last with the next update (if vis
pages.go:201
Method
SetActivatedStyle
SetActivatedStyle sets the style of the checkbox when it is currently focused.
checkbox.go:149
Method
SetAfterDrawFunc
SetAfterDrawFunc installs a callback function which is invoked after the root primitive was drawn during screen updates. Provide nil to uninstall the
application.go:790
← previous
next →
401–500 of 690, ranked by callers