Documentation
¶
Index ¶
- func BytesToSizeString(bytes int64) string
- func ImageAspect(im image.Image) float32
- func NewDebouncer(dur time.Duration, callOnDone func()) func()
- func NewRatingSubmenu(onSetRating func(int)) *fyne.MenuItem
- func RichTextSegsFromHTMLString(s string) []widget.RichTextSegment
- func SecondsToTimeString(s float64) string
- type BitSet
- type HSpace
- type ListSelectionManager
- func (l *ListSelectionManager) AreAllSelected() bool
- func (l *ListSelectionManager) GetSelection() []int
- func (l *ListSelectionManager) IsSelected(row int) bool
- func (l *ListSelectionManager) Select(row int)
- func (l *ListSelectionManager) SelectAddOrRemove(row int)
- func (l *ListSelectionManager) SelectAll()
- func (l *ListSelectionManager) SelectRange(row int)
- func (l *ListSelectionManager) UnselectAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToSizeString ¶
func ImageAspect ¶
func NewDebouncer ¶
Debouncer returns a function that will call callOnDone when it has not been invoked since the last dur interval.
func NewRatingSubmenu ¶
func NewRatingSubmenu(onSetRating func(int)) *fyne.MenuItem
func RichTextSegsFromHTMLString ¶
func RichTextSegsFromHTMLString(s string) []widget.RichTextSegment
func SecondsToTimeString ¶
Types ¶
type BitSet ¶
type BitSet []uint64
BitSet is a set of bits that can be set, cleared and queried.
type HSpace ¶
type HSpace struct { widget.BaseWidget Width float32 }
func (*HSpace) CreateRenderer ¶
func (h *HSpace) CreateRenderer() fyne.WidgetRenderer
type ListSelectionManager ¶
type ListSelectionManager struct {
// contains filtered or unexported fields
}
func NewListSelectionManager ¶
func NewListSelectionManager(lenFn func() int) ListSelectionManager
func (*ListSelectionManager) AreAllSelected ¶
func (l *ListSelectionManager) AreAllSelected() bool
func (*ListSelectionManager) GetSelection ¶
func (l *ListSelectionManager) GetSelection() []int
func (*ListSelectionManager) IsSelected ¶
func (l *ListSelectionManager) IsSelected(row int) bool
func (*ListSelectionManager) Select ¶
func (l *ListSelectionManager) Select(row int)
If the given row is not selected, reset the selection and select only the given row.
func (*ListSelectionManager) SelectAddOrRemove ¶
func (l *ListSelectionManager) SelectAddOrRemove(row int)
If it is not selected, add the given row to the selection. If it is selected, unselet it.
func (*ListSelectionManager) SelectAll ¶
func (l *ListSelectionManager) SelectAll()
func (*ListSelectionManager) SelectRange ¶
func (l *ListSelectionManager) SelectRange(row int)
Select a range between the given row and the furthest-down row that is currently selected (which may be above the given row) Note: this is modeled after what, as far as I can tell, is Gmail's selection behavior
func (*ListSelectionManager) UnselectAll ¶
func (l *ListSelectionManager) UnselectAll()
Click to show internal directories.
Click to hide internal directories.