Documentation ¶
Index ¶
- Variables
- type ConfigService
- func (cs *ConfigService) GetDelay() time.Duration
- func (cs *ConfigService) GetShuffle() bool
- func (cs *ConfigService) OnChange()
- func (cs *ConfigService) Save()
- func (cs *ConfigService) SetDelay(delay time.Duration)
- func (cs *ConfigService) SetShuffle(shuffle bool)
- func (cs *ConfigService) Subscribe(handler func(models.Config))
- func (cs *ConfigService) Update()
- type ImageService
- func (is *ImageService) AddCurrentToPlaylist(index int)
- func (is *ImageService) AddURI(uri fyne.URI) []fyne.URI
- func (is *ImageService) Clear()
- func (is *ImageService) GetCurrent() fyne.URI
- func (is *ImageService) GetImageFromURI(uri fyne.URI) image.Image
- func (is *ImageService) GetPlaylist() []string
- func (is *ImageService) HandleConfigUpdate(config models.Config)
- func (is *ImageService) ImportImages(uri []fyne.URI)
- func (is *ImageService) Next() fyne.URI
- func (is *ImageService) Previous() fyne.URI
- func (is *ImageService) RecalculateCurrentPlaylist()
- func (is *ImageService) RemoveCurrentFromPlaylist()
- func (is *ImageService) SetCurrentPlaylist(index int)
- func (is *ImageService) SetPlaylist(playlist int)
- func (is *ImageService) Update(w fyne.Window, ps *PlayerService, restartDelay bool)
- type NotificationService
- type PlayerService
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶ added in v0.0.5
type ConfigService struct {
// contains filtered or unexported fields
}
func NewConfigService ¶ added in v0.0.5
func NewConfigService() *ConfigService
func (*ConfigService) GetDelay ¶ added in v0.0.5
func (cs *ConfigService) GetDelay() time.Duration
func (*ConfigService) GetShuffle ¶ added in v0.0.5
func (cs *ConfigService) GetShuffle() bool
func (*ConfigService) OnChange ¶ added in v0.0.5
func (cs *ConfigService) OnChange()
func (*ConfigService) Save ¶ added in v0.0.5
func (cs *ConfigService) Save()
func (*ConfigService) SetDelay ¶ added in v0.0.5
func (cs *ConfigService) SetDelay(delay time.Duration)
func (*ConfigService) SetShuffle ¶ added in v0.0.5
func (cs *ConfigService) SetShuffle(shuffle bool)
func (*ConfigService) Subscribe ¶ added in v0.0.5
func (cs *ConfigService) Subscribe(handler func(models.Config))
func (*ConfigService) Update ¶ added in v0.0.5
func (cs *ConfigService) Update()
type ImageService ¶
type ImageService struct { Zoomable *models.ZoomableImage // contains filtered or unexported fields }
func NewImageService ¶
func NewImageService() *ImageService
func (*ImageService) AddCurrentToPlaylist ¶ added in v0.0.5
func (is *ImageService) AddCurrentToPlaylist(index int)
func (*ImageService) AddURI ¶
func (is *ImageService) AddURI(uri fyne.URI) []fyne.URI
func (*ImageService) Clear ¶
func (is *ImageService) Clear()
func (*ImageService) GetCurrent ¶
func (is *ImageService) GetCurrent() fyne.URI
func (*ImageService) GetImageFromURI ¶
func (is *ImageService) GetImageFromURI(uri fyne.URI) image.Image
func (*ImageService) GetPlaylist ¶ added in v0.0.6
func (is *ImageService) GetPlaylist() []string
func (*ImageService) HandleConfigUpdate ¶ added in v0.0.5
func (is *ImageService) HandleConfigUpdate(config models.Config)
func (*ImageService) ImportImages ¶
func (is *ImageService) ImportImages(uri []fyne.URI)
func (*ImageService) Next ¶
func (is *ImageService) Next() fyne.URI
func (*ImageService) Previous ¶
func (is *ImageService) Previous() fyne.URI
func (*ImageService) RecalculateCurrentPlaylist ¶ added in v0.0.5
func (is *ImageService) RecalculateCurrentPlaylist()
func (*ImageService) RemoveCurrentFromPlaylist ¶ added in v0.0.5
func (is *ImageService) RemoveCurrentFromPlaylist()
func (*ImageService) SetCurrentPlaylist ¶ added in v0.0.5
func (is *ImageService) SetCurrentPlaylist(index int)
func (*ImageService) SetPlaylist ¶ added in v0.0.5
func (is *ImageService) SetPlaylist(playlist int)
func (*ImageService) Update ¶
func (is *ImageService) Update(w fyne.Window, ps *PlayerService, restartDelay bool)
type NotificationService ¶
type NotificationService struct { CurrentMessage string // contains filtered or unexported fields }
func NewNotificationService ¶
func NewNotificationService(w fyne.Window) *NotificationService
func (*NotificationService) Init ¶
func (ns *NotificationService) Init(w fyne.Window)
func (*NotificationService) SetNotification ¶
func (ns *NotificationService) SetNotification(notification string)
type PlayerService ¶
type PlayerService struct { IsPlaying bool LastSet time.Time CurrentDelay time.Duration // contains filtered or unexported fields }
func NewPlayerService ¶
func NewPlayerService() *PlayerService
func (*PlayerService) HandleConfigUpdate ¶ added in v0.0.5
func (ps *PlayerService) HandleConfigUpdate(config models.Config)
func (*PlayerService) PlayPause ¶
func (ps *PlayerService) PlayPause()
func (*PlayerService) Stop ¶
func (ps *PlayerService) Stop()
Click to show internal directories.
Click to hide internal directories.