gui

package
v0.0.0-...-8f57cd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadItem

type DownloadItem struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewDownloadItem

func NewDownloadItem() *DownloadItem

func (*DownloadItem) CreateRenderer

func (di *DownloadItem) CreateRenderer() fyne.WidgetRenderer

func (*DownloadItem) Set

func (di *DownloadItem) Set(dl *logic.Download)

type Downloads

type Downloads struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewDownloads

func NewDownloads(dls *logic.Downloads, mobile bool) *Downloads

func (*Downloads) CreateRenderer

func (dll *Downloads) CreateRenderer() fyne.WidgetRenderer

type Episode

type Episode struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewEpisode

func NewEpisode(
	ctx context.Context,
	onInfo func(title, text string),
	onError func(error),
	dls *logic.Downloads,
	cfgClient *data.Client[*logic.Config],
	metadata sp.EpisodeMetadata,
	getEpisode func() (sp.Episode, error),
	showSeasonNumber bool,
	showEpisodeNumber bool,
	mobile bool,
) (ep *Episode, destroy func())

func (*Episode) CreateRenderer

func (e *Episode) CreateRenderer() fyne.WidgetRenderer

type EpisodeList

type EpisodeList struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewEpisodeList

func NewEpisodeList(
	ctx context.Context,
	season logic.Season,
	dls *logic.Downloads,
	cacheClient *data.Client[*logic.Cache],
	cfgClient *data.Client[*logic.Config],
	onInfo func(title, text string),
	onError func(error),
	setClipboard func(string),
	mobile bool,
) (episodeList *EpisodeList, destroy func())

func (*EpisodeList) CreateRenderer

func (el *EpisodeList) CreateRenderer() fyne.WidgetRenderer

type EpisodesPanel

type EpisodesPanel struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewEpisodesPanel

func NewEpisodesPanel(
	ctx context.Context,
	dls *logic.Downloads,
	cacheStor *logic.StorageItem[*logic.Cache],
	cfgClient *data.Client[*logic.Config],
	onInfo func(title, text string),
	onError func(error),
	setClipboard func(string),
	mobile bool,
) *EpisodesPanel

func (*EpisodesPanel) CreateRenderer

func (e *EpisodesPanel) CreateRenderer() fyne.WidgetRenderer

type Loadable

type Loadable struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewLoadable

func NewLoadable(
	ctx context.Context,
	asyncFn func(ctx context.Context) (fyne.CanvasObject, error),
	setClipboard func(string),
) *Loadable

func (*Loadable) CreateRenderer

func (r *Loadable) CreateRenderer() fyne.WidgetRenderer

type Preferences

type Preferences struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewPreferences

func NewPreferences(ctx context.Context, cfgStor *logic.StorageItem[*logic.Config], onError func(error), window fyne.Window) *Preferences

func (*Preferences) CreateRenderer

func (p *Preferences) CreateRenderer() fyne.WidgetRenderer

type SelectableEntry

type SelectableEntry struct {
	widget.Entry
	OnSelected   func()
	OnUnselected func()
}

func NewSelectableEntry

func NewSelectableEntry() *SelectableEntry

func (*SelectableEntry) FocusGained

func (e *SelectableEntry) FocusGained()

func (*SelectableEntry) FocusLost

func (e *SelectableEntry) FocusLost()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL