Documentation ¶
Index ¶
- type C
- type D
- type InteractiveLabel
- type ListContent
- type ListItem
- type SelectableList
- func (sl *SelectableList) Layout(gtx layout.Context, th *theme.Theme) layout.Dimensions
- func (sl *SelectableList) SelectedItem() *ListItem
- func (sl *SelectableList) SelectionChanged(gtx C) bool
- func (sl *SelectableList) Update(gtx C) bool
- func (sl *SelectableList) UpdateListItems(contents []ListContent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type D ¶
type D = layout.Dimensions
type InteractiveLabel ¶
type InteractiveLabel struct {
// contains filtered or unexported fields
}
func (*InteractiveLabel) IsSelected ¶
func (l *InteractiveLabel) IsSelected() bool
func (*InteractiveLabel) Select ¶ added in v0.6.0
func (l *InteractiveLabel) Select()
func (*InteractiveLabel) Unselect ¶
func (l *InteractiveLabel) Unselect()
type ListContent ¶
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
func (*ListItem) GetContent ¶
func (li *ListItem) GetContent() ListContent
type SelectableList ¶
type SelectableList struct {
// contains filtered or unexported fields
}
func NewSelectableList ¶
func NewSelectableList(contents []ListContent) *SelectableList
func (*SelectableList) Layout ¶
func (sl *SelectableList) Layout(gtx layout.Context, th *theme.Theme) layout.Dimensions
func (*SelectableList) SelectedItem ¶
func (sl *SelectableList) SelectedItem() *ListItem
func (*SelectableList) SelectionChanged ¶
func (sl *SelectableList) SelectionChanged(gtx C) bool
func (*SelectableList) Update ¶
func (sl *SelectableList) Update(gtx C) bool
return whether current selected item is clicked.
func (*SelectableList) UpdateListItems ¶
func (sl *SelectableList) UpdateListItems(contents []ListContent)
Click to show internal directories.
Click to hide internal directories.