Documentation ¶
Index ¶
- type List
- func (l *List) AlternateBackgroundInk() draw.Ink
- func (l *List) Append(values ...interface{})
- func (l *List) BackgroundInk() draw.Ink
- func (l *List) DefaultCanPerformCmd(source interface{}, id int) bool
- func (l *List) DefaultDraw(gc draw.Context, dirty geom.Rect, inLiveResize bool)
- func (l *List) DefaultKeyDown(keyCode int, ch rune, mod keys.Modifiers, repeat bool) bool
- func (l *List) DefaultMouseDown(where geom.Point, button, clickCount int, mod keys.Modifiers) bool
- func (l *List) DefaultMouseDrag(where geom.Point, button int, mod keys.Modifiers)
- func (l *List) DefaultMouseUp(where geom.Point, button int, mod keys.Modifiers)
- func (l *List) DefaultPerformCmd(source interface{}, id int)
- func (l *List) DefaultSizes(hint geom.Size) (min, pref, max geom.Size)
- func (l *List) Factory() widget.CellFactory
- func (l *List) Insert(index int, values ...interface{})
- func (l *List) Remove(index int)
- func (l *List) Select(add bool, index ...int)
- func (l *List) SelectRange(start, end int, add bool)
- func (l *List) SelectedBackgroundInk() draw.Ink
- func (l *List) SetAlternateBackgroundInk(value draw.Ink) *List
- func (l *List) SetBackgroundInk(value draw.Ink) *List
- func (l *List) SetBorder(value border.Border) *List
- func (l *List) SetEnabled(enabled bool) *List
- func (l *List) SetFactory(value widget.CellFactory) *List
- func (l *List) SetFocusable(focusable bool) *List
- func (l *List) SetSelectedBackgroundInk(value draw.Ink) *List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct { ux.Panel DoubleClickCallback func() NewSelectionCallback func() 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 (*List) AlternateBackgroundInk ¶
AlternateBackgroundInk returns the ink that will be used for the background on odd rows when not selected.
func (*List) Append ¶
func (l *List) Append(values ...interface{})
Append values to the list of items.
func (*List) BackgroundInk ¶
BackgroundInk returns the ink that will be used for the background on even rows when not selected.
func (*List) DefaultCanPerformCmd ¶
DefaultCanPerformCmd provides the default can perform cmd handling.
func (*List) DefaultDraw ¶
DefaultDraw provides the default drawing.
func (*List) DefaultKeyDown ¶
DefaultKeyDown provides the default key down handling.
func (*List) DefaultMouseDown ¶
DefaultMouseDown provides the default mouse down handling.
func (*List) DefaultMouseDrag ¶
DefaultMouseDrag provides the default mouse drag handling.
func (*List) DefaultMouseUp ¶
DefaultMouseUp provides the default mouse up handling.
func (*List) DefaultPerformCmd ¶
DefaultPerformCmd provides the default perform cmd handling.
func (*List) DefaultSizes ¶
DefaultSizes provides the default sizing.
func (*List) Factory ¶
func (l *List) Factory() widget.CellFactory
Factory returns the cell factory.
func (*List) Select ¶
Select items at the specified indexes. If 'add' is true, then any existing selection is added to rather than replaced.
func (*List) SelectRange ¶
SelectRange selects items from 'start' to 'end', inclusive. If 'add' is true, then any existing selection is added to rather than replaced.
func (*List) SelectedBackgroundInk ¶
SelectedBackgroundInk returns the ink that will be used for the background when selected.
func (*List) SetAlternateBackgroundInk ¶
SetAlternateBackgroundInk sets the ink that will be used for the background on odd rows when not selected. Pass in nil to use the default.
func (*List) SetBackgroundInk ¶
SetBackgroundInk sets the ink that will be used for the background on even rows when not selected. Pass in nil to use the default.
func (*List) SetEnabled ¶
SetEnabled sets enabled state.
func (*List) SetFactory ¶
func (l *List) SetFactory(value widget.CellFactory) *List
SetFactory sets the cell factory. Pass in nil to use the default.
func (*List) SetFocusable ¶
SetFocusable whether it can have the keyboard focus.