Documentation
¶
Index ¶
- type FilteredList
- func (fl *FilteredList) GetFilteredDisplayIndices() map[int]int
- func (fl *FilteredList) GetFilteredIndices() []int
- func (fl *FilteredList) GetGroupAtIndex(index int) string
- func (fl *FilteredList) GetQuery() string
- func (fl *FilteredList) GetSelectableIndices() []int
- func (fl *FilteredList) IsGroupCollapsed(groupID string) bool
- func (fl *FilteredList) IsHeaderAtIndex(index int) bool
- func (fl *FilteredList) IsSearchMode() bool
- func (fl *FilteredList) SetRows(rows []string)
- func (fl *FilteredList) SetRowsWithMetadata(rows []string, metadata []RowMetadata)
- func (fl *FilteredList) ToggleAllGroups()
- func (fl *FilteredList) ToggleGroupCollapse(groupID string)
- func (fl *FilteredList) ToggleSearch()
- func (fl *FilteredList) UpdateSearch(char string)
- type RowMetadata
- type TimingBreakdown
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilteredList ¶ added in v0.2.4
type FilteredList struct {
*widgets.List
OnSearchChange func(query string, filteredIndices []int)
// contains filtered or unexported fields
}
func NewFilteredList ¶ added in v0.2.4
func NewFilteredList() *FilteredList
func (*FilteredList) GetFilteredDisplayIndices ¶ added in v0.3.0
func (fl *FilteredList) GetFilteredDisplayIndices() map[int]int
func (*FilteredList) GetFilteredIndices ¶ added in v0.2.4
func (fl *FilteredList) GetFilteredIndices() []int
func (*FilteredList) GetGroupAtIndex ¶ added in v0.3.0
func (fl *FilteredList) GetGroupAtIndex(index int) string
func (*FilteredList) GetQuery ¶ added in v0.2.4
func (fl *FilteredList) GetQuery() string
func (*FilteredList) GetSelectableIndices ¶ added in v0.3.0
func (fl *FilteredList) GetSelectableIndices() []int
func (*FilteredList) IsGroupCollapsed ¶ added in v0.3.0
func (fl *FilteredList) IsGroupCollapsed(groupID string) bool
func (*FilteredList) IsHeaderAtIndex ¶ added in v0.3.0
func (fl *FilteredList) IsHeaderAtIndex(index int) bool
func (*FilteredList) IsSearchMode ¶ added in v0.2.4
func (fl *FilteredList) IsSearchMode() bool
func (*FilteredList) SetRows ¶ added in v0.2.4
func (fl *FilteredList) SetRows(rows []string)
func (*FilteredList) SetRowsWithMetadata ¶ added in v0.3.0
func (fl *FilteredList) SetRowsWithMetadata(rows []string, metadata []RowMetadata)
func (*FilteredList) ToggleAllGroups ¶ added in v0.3.0
func (fl *FilteredList) ToggleAllGroups()
func (*FilteredList) ToggleGroupCollapse ¶ added in v0.3.0
func (fl *FilteredList) ToggleGroupCollapse(groupID string)
func (*FilteredList) ToggleSearch ¶ added in v0.2.4
func (fl *FilteredList) ToggleSearch()
func (*FilteredList) UpdateSearch ¶ added in v0.2.4
func (fl *FilteredList) UpdateSearch(char string)
type RowMetadata ¶ added in v0.3.0
type TimingBreakdown ¶
type TimingBreakdown struct {
ui.Block
Timings map[string]time.Duration
Colors map[string]ui.Color
}
func NewTimingBreakdown ¶
func NewTimingBreakdown() *TimingBreakdown
func (*TimingBreakdown) Draw ¶
func (tb *TimingBreakdown) Draw(buf *ui.Buffer)
func (*TimingBreakdown) SetTimings ¶
func (tb *TimingBreakdown) SetTimings(newTimings map[string]time.Duration)
Click to show internal directories.
Click to hide internal directories.