Documentation ¶
Index ¶
- type List
- func (l *List) AddEntry(entry any)
- func (l *List) AddFocus(direction widget.FocusDirection, focus widget.Focuser)
- func (l *List) Entries() []any
- func (l *List) Focus(focused bool)
- func (l *List) FocusNext()
- func (l *List) FocusPrevious()
- func (l *List) GetFocus(direction widget.FocusDirection) widget.Focuser
- func (l *List) GetWidget() *widget.Widget
- func (l *List) IsFocused() bool
- func (l *List) PreferredSize() (int, int)
- func (l *List) RemoveEntry(entry any)
- func (l *List) Render(screen *ebiten.Image)
- func (l *List) RequestRelayout()
- func (l *List) SelectFocused()
- func (l *List) SelectedEntry() any
- func (l *List) SetEntries(newEntries []any)
- func (l *List) SetLocation(rect img.Rectangle)
- func (l *List) SetSelectedEntry(entry any)
- func (l *List) SetupInputLayer(def input.DeferredSetupInputLayerFunc)
- func (l *List) TabOrder() int
- func (l *List) Update()
- type ListEntryColor
- type ListEntryEnterFunc
- type ListEntryLabelFunc
- type ListEntrySelectedEventArgs
- type ListEntrySelectedHandlerFunc
- type ListOpt
- type ListOptions
- func (o ListOptions) AllowReselect() ListOpt
- func (o ListOptions) ContainerOpts(opts ...widget.ContainerOpt) ListOpt
- func (o ListOptions) ControlWidgetSpacing(s int) ListOpt
- func (o ListOptions) DisableDefaultKeys(val bool) ListOpt
- func (o ListOptions) Entries(e []any) ListOpt
- func (o ListOptions) EntryButtonOpts(opts ...widget.ButtonOpt) ListOpt
- func (o ListOptions) EntryColor(c *ListEntryColor) ListOpt
- func (o ListOptions) EntryEnterFunc(f ListEntryEnterFunc) ListOpt
- func (o ListOptions) EntryFontFace(f text.Face) ListOpt
- func (o ListOptions) EntryLabelFunc(f ListEntryLabelFunc) ListOpt
- func (o ListOptions) EntrySelectedHandler(f ListEntrySelectedHandlerFunc) ListOpt
- func (o ListOptions) EntryTextPadding(i widget.Insets) ListOpt
- func (o ListOptions) EntryTextPosition(h widget.TextPosition, v widget.TextPosition) ListOpt
- func (o ListOptions) HideHorizontalSlider() ListOpt
- func (o ListOptions) HideVerticalSlider() ListOpt
- func (o ListOptions) ScrollContainerOpts(opts ...widget.ScrollContainerOpt) ListOpt
- func (o ListOptions) SelectFocus() ListOpt
- func (o ListOptions) SliderOpts(opts ...widget.SliderOpt) ListOpt
- func (o ListOptions) TabOrder(tabOrder int) ListOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
func (*List) AddFocus ¶
func (l *List) AddFocus(direction widget.FocusDirection, focus widget.Focuser)
func (*List) FocusPrevious ¶
func (l *List) FocusPrevious()
func (*List) PreferredSize ¶
func (*List) RemoveEntry ¶
Remove the passed in entry from the list if it exists
func (*List) RequestRelayout ¶
func (l *List) RequestRelayout()
func (*List) SelectFocused ¶
func (l *List) SelectFocused()
func (*List) SelectedEntry ¶
Return the currently selected entry in the list
func (*List) SetEntries ¶
Updates the entries in the list. Note: Duplicates will be removed.
func (*List) SetLocation ¶
func (*List) SetSelectedEntry ¶
Set the Selected Entry to e if it is found.
func (*List) SetupInputLayer ¶
func (l *List) SetupInputLayer(def input.DeferredSetupInputLayerFunc)
type ListEntryColor ¶
type ListEntryColor struct { Unselected color.Color Selected color.Color DisabledUnselected color.Color DisabledSelected color.Color SelectingBackground color.Color SelectedBackground color.Color FocusedBackground color.Color SelectingFocusedBackground color.Color SelectedFocusedBackground color.Color DisabledSelectedBackground color.Color }
type ListEntryEnterFunc ¶
type ListEntryEnterFunc func(e any)
type ListEntryLabelFunc ¶
type ListEntrySelectedHandlerFunc ¶
type ListEntrySelectedHandlerFunc func(args *ListEntrySelectedEventArgs)
type ListOptions ¶
type ListOptions struct{}
var ListOpts ListOptions
func (ListOptions) AllowReselect ¶
func (o ListOptions) AllowReselect() ListOpt
func (ListOptions) ContainerOpts ¶
func (o ListOptions) ContainerOpts(opts ...widget.ContainerOpt) ListOpt
func (ListOptions) ControlWidgetSpacing ¶
func (o ListOptions) ControlWidgetSpacing(s int) ListOpt
func (ListOptions) DisableDefaultKeys ¶
func (o ListOptions) DisableDefaultKeys(val bool) ListOpt
func (ListOptions) Entries ¶
func (o ListOptions) Entries(e []any) ListOpt
func (ListOptions) EntryButtonOpts ¶ added in v1.55.0
func (o ListOptions) EntryButtonOpts(opts ...widget.ButtonOpt) ListOpt
func (ListOptions) EntryColor ¶
func (o ListOptions) EntryColor(c *ListEntryColor) ListOpt
func (ListOptions) EntryEnterFunc ¶
func (o ListOptions) EntryEnterFunc(f ListEntryEnterFunc) ListOpt
func (ListOptions) EntryFontFace ¶
func (o ListOptions) EntryFontFace(f text.Face) ListOpt
func (ListOptions) EntryLabelFunc ¶
func (o ListOptions) EntryLabelFunc(f ListEntryLabelFunc) ListOpt
func (ListOptions) EntrySelectedHandler ¶
func (o ListOptions) EntrySelectedHandler(f ListEntrySelectedHandlerFunc) ListOpt
func (ListOptions) EntryTextPadding ¶
func (o ListOptions) EntryTextPadding(i widget.Insets) ListOpt
func (ListOptions) EntryTextPosition ¶
func (o ListOptions) EntryTextPosition(h widget.TextPosition, v widget.TextPosition) ListOpt
EntryTextPosition sets the position of the text for entries. Defaults to both TextPositionCenter.
func (ListOptions) HideHorizontalSlider ¶
func (o ListOptions) HideHorizontalSlider() ListOpt
func (ListOptions) HideVerticalSlider ¶
func (o ListOptions) HideVerticalSlider() ListOpt
func (ListOptions) ScrollContainerOpts ¶
func (o ListOptions) ScrollContainerOpts(opts ...widget.ScrollContainerOpt) ListOpt
func (ListOptions) SelectFocus ¶
func (o ListOptions) SelectFocus() ListOpt
SelectFocus automatically selects each focused entry.
func (ListOptions) SliderOpts ¶
func (o ListOptions) SliderOpts(opts ...widget.SliderOpt) ListOpt
func (ListOptions) TabOrder ¶
func (o ListOptions) TabOrder(tabOrder int) ListOpt
Click to show internal directories.
Click to hide internal directories.