Lines Matching defs:List
21 type List struct { struct
22 items []*interface{}
23 scope []*interface{}
24 cursor int // cursor holds the index of the current selected item
25 size int // size is the number of visible options
26 start int
27 Searcher Searcher
55 func (l *List) Prev() {
67 func (l *List) Search(term string) {
76 func (l *List) CancelSearch() {
82 func (l *List) search(term string) {
95 func (l *List) Start() int {
101 func (l *List) SetStart(i int) {
114 func (l *List) SetCursor(i int) {
134 func (l *List) Next() {
150 func (l *List) PageUp() {
168 func (l *List) PageDown() {
191 func (l *List) CanPageDown() bool {
197 func (l *List) CanPageUp() bool {
203 func (l *List) Index() int {
217 func (l *List) Items() ([]interface{}, int) {