MCPcopy Index your code

hub / github.com/rivo/tview / functions

Functions690 in github.com/rivo/tview

MethodGetSelection
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
MethodGetSelection
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
MethodGetText
GetText returns this node's text.
treeview.go:117
MethodGetText
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
MethodGetTextStyle
GetTextStyle returns the text style for this node.
treeview.go:233
MethodGetTitle
GetTitle returns the box's current title.
box.go:347
MethodGetWrappedLineCount
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
FunctionGrid
Grid demonstrates the grid layout.
demos/presentation/grid.go:9
MethodHasFocus
HasFocus returns whether or not this primitive has focus.
grid.go:260
MethodHasFocus
HasFocus returns whether or not this primitive has focus.
modal.go:151
MethodHasFocus
HasFocus returns whether or not this primitive has focus.
flex.go:218
MethodHasFocus
HasFocus returns whether or not this primitive has focus.
form.go:784
MethodHasFocus
HasFocus returns whether or not this primitive has focus.
box.go:484
MethodHasFocus
HasFocus returns whether the underlying TextView has focus.
textview.go:50
MethodHasFocus
HasFocus returns whether or not this primitive has focus.
textview.go:799
MethodHasFocus
HasFocus returns whether or not this primitive has focus.
frame.go:179
MethodHasPage
HasPage returns true if a page with the given name exists in this object.
pages.go:135
MethodHasSelection
HasSelection returns whether the selected text is non-empty.
textarea.go:519
FunctionHelloWorld
HelloWorld shows a simple "Hello world" example.
demos/presentation/helloworld.go:24
FunctionInputField
InputField demonstrates the InputField.
demos/presentation/inputfield.go:33
MethodInputHandler
InputHandler returns the handler for this primitive.
inputfield.go:535
MethodInputHandler
InputHandler returns the handler for this primitive.
dropdown.go:532
MethodInputHandler
InputHandler returns the handler for this primitive.
grid.go:657
MethodInputHandler
InputHandler returns the handler for this primitive.
textarea.go:1949
MethodInputHandler
InputHandler returns the handler for this primitive.
pages.go:329
MethodInputHandler
InputHandler returns the handler for this primitive.
table.go:1370
MethodInputHandler
InputHandler returns the handler for this primitive.
modal.go:205
MethodInputHandler
InputHandler returns the handler for this primitive.
flex.go:250
MethodInputHandler
InputHandler returns the handler for this primitive.
form.go:853
MethodInputHandler
InputHandler returns the handler for this primitive.
treeview.go:800
MethodInputHandler
InputHandler returns nil. Box has no default input handling.
box.go:173
MethodInputHandler
InputHandler returns the handler for this primitive.
textview.go:1322
MethodInputHandler
InputHandler returns the handler for this primitive.
button.go:155
MethodInputHandler
InputHandler returns the handler for this primitive.
frame.go:212
MethodInputHandler
InputHandler returns the handler for this primitive.
checkbox.go:282
MethodInputHandler
InputHandler returns the handler for this primitive.
list.go:610
MethodInputHandler
InputHandler returns the handler for this primitive.
demos/primitive/main.go:45
MethodInsertColumn
InsertColumn does not do anything.
table.go:306
MethodInsertColumn
InsertColumn inserts a new column at the given position.
table.go:381
MethodInsertColumn
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
MethodInsertRow
InsertRow does not do anything.
table.go:301
MethodInsertRow
InsertRow inserts a new row at the given position.
table.go:371
MethodInsertRow
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
FunctionIntroduction
Introduction returns a tview.List with the highlights of the tview package.
demos/presentation/introduction.go:6
MethodIsChecked
IsChecked returns whether or not the box is checked.
checkbox.go:85
MethodIsOpen
IsOpen returns true if the drop-down list is currently open.
dropdown.go:652
MethodIsSentenceBoundary
IsSentenceBoundary returns true if the boundary between the returned grapheme cluster and the one following it is a sentence boundary.
strings.go:53
MethodIsWordBoundary
IsWordBoundary returns true if the boundary between the returned grapheme cluster and the one following it is a word boundary.
strings.go:47
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
inputfield.go:640
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
dropdown.go:681
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
grid.go:635
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
textarea.go:2340
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
pages.go:307
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
table.go:1690
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
modal.go:192
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
flex.go:228
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
form.go:809
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
treeview.go:867
MethodMouseHandler
MouseHandler returns nil. Box has no default mouse handling.
box.go:237
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
textview.go:1386
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
button.go:176
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
frame.go:187
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
checkbox.go:310
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
list.go:728
MethodMouseHandler
MouseHandler returns the mouse handler for this primitive.
demos/primitive/main.go:63
MethodMove
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
MethodPasteHandler
PasteHandler returns the handler for this primitive.
inputfield.go:695
MethodPasteHandler
PasteHandler returns the handler for this primitive.
dropdown.go:729
MethodPasteHandler
PasteHandler returns the handler for this primitive.
grid.go:706
MethodPasteHandler
PasteHandler returns the handler for this primitive.
textarea.go:2438
MethodPasteHandler
PasteHandler returns the handler for this primitive.
pages.go:343
MethodPasteHandler
PasteHandler returns the handler for this primitive.
flex.go:264
MethodPasteHandler
PasteHandler returns the handler for this primitive.
form.go:876
MethodPasteHandler
PasteHandler returns nil. Box has no default paste handling.
box.go:187
MethodPasteHandler
PasteHandler returns the handler for this primitive.
frame.go:225
FunctionPrintSimple
PrintSimple prints white text to the screen at the given position.
util.go:156
MethodQueueUpdateDraw
QueueUpdateDraw works like QueueUpdate() except it refreshes the screen immediately after executing f.
application.go:885
MethodRemoveButton
RemoveButton removes the button at the specified position, starting with 0 for the button that was added first.
form.go:387
MethodRemoveChild
RemoveChild removes a child node from this node. If the child node cannot be found, nothing happens.
treeview.go:140
MethodRemoveColumn
RemoveColumn does not do anything.
table.go:296
MethodRemoveColumn
RemoveColumn removes a column from the data.
table.go:358
MethodRemoveColumn
RemoveColumn removes the column at the given position from the table. If there is no such column, this has no effect.
table.go:757
MethodRemoveFormItem
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
MethodRemoveItem
RemoveItem removes all items for the given primitive from the container, keeping the order of the remaining items intact.
flex.go:103
MethodRemoveItem
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
MethodRemoveOption
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
MethodRemoveRow
RemoveRow does not do anything.
table.go:291
MethodRemoveRow
RemoveRow removes a row from the data.
table.go:350
MethodRemoveRow
RemoveRow removes the row at the given position from the table. If there is no such row, this has no effect.
table.go:750
MethodResizeItem
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
MethodResizeToFullScreen
ResizeToFullScreen resizes the given primitive such that it fills the entire screen.
application.go:824
MethodScrollTo
ScrollTo scrolls to the specified row and column (both starting with 0).
textview.go:547
MethodScrollToBeginning
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
MethodScrollToBeginning
ScrollToBeginning scrolls to the top left corner of the text if the text view is scrollable.
textview.go:559
MethodScrollToEnd
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
MethodScrollToEnd
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
MethodSendToBack
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
MethodSendToFront
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
MethodSetActivatedStyle
SetActivatedStyle sets the style of the checkbox when it is currently focused.
checkbox.go:149
MethodSetAfterDrawFunc
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
← previousnext →401–500 of 690, ranked by callers