list

package
v0.0.0-...-af996ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2019 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	widget.Block

	Selection xmath.BitSet
	// contains filtered or unexported fields
}

List provides a control that allows the user to select from a list of items, represented by cells.

func New

func New(factory widget.CellFactory) *List

New creates a new List control.

func (*List) Append

func (list *List) Append(values ...interface{})

Append values to the list of items.

func (*List) CanSelectAll

func (list *List) CanSelectAll() bool

CanSelectAll returns true if SelectAll() will change anything.

func (*List) Insert

func (list *List) Insert(index int, values ...interface{})

Insert values at the specified index.

func (*List) Remove

func (list *List) Remove(index int)

Remove the item at the specified index.

func (*List) Select

func (list *List) Select(append bool, index ...int)

Select items at the specified indexes. If 'append' is true, then any existing selection is added to rather than replaced.

func (*List) SelectAll

func (list *List) SelectAll()

SelectAll selects all rows.

func (*List) SelectRange

func (list *List) SelectRange(start, end int, append bool)

SelectRange selects items from 'start' to 'end', inclusive. If 'append' is true, then any existing selection is added to rather than replaced.

func (*List) Sizes

func (list *List) Sizes(hint geom.Size) (min, pref, max geom.Size)

Sizes implements Sizer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL