Documentation
¶
Index ¶
- Variables
- func New(a fyne.App, w fyne.Window)
- type CoreUI
- type PicsortUI
- func (p *PicsortUI) GetBinCount() int
- func (p *PicsortUI) GetWindow() fyne.Window
- func (p *PicsortUI) GoToTab(id int)
- func (p *PicsortUI) HideProgressDialog()
- func (p *PicsortUI) LoadContent()
- func (p *PicsortUI) NewBin()
- func (p *PicsortUI) OnTypedKey(e *fyne.KeyEvent)
- func (p *PicsortUI) OnTypedRune(r rune)
- func (p *PicsortUI) RefreshTabCount(id int)
- func (p *PicsortUI) ReloadAll()
- func (p *PicsortUI) ReloadBin(id int)
- func (p *PicsortUI) RemoveBin()
- func (p *PicsortUI) SetProgress(progress float64, f string)
- func (p *PicsortUI) ShowErrorDialog(err error)
- func (p *PicsortUI) ShowProgressDialog(msg string)
- func (p *PicsortUI) UpdatePreview(path string)
- type Thumbnail
- type ThumbnailGridWrap
- type ThumbnailProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var CoffeeIcon = &fyne.StaticResource{StaticName: "coffee.svg", StaticContent: coffeeLogoBytes}
View Source
var DiscordIcon = &fyne.StaticResource{StaticName: "discord.svg", StaticContent: discordLogoBytes}
View Source
var GithubIcon = &fyne.StaticResource{StaticName: "github.svg", StaticContent: githubLogoBytes}
View Source
var Icons = map[string]*fyne.StaticResource{ "logo": LogoIcon, "discord": DiscordIcon, "bmc": CoffeeIcon, "github": GithubIcon, "mastodon": MastodonIcon, "sponsor": SponsorIcon, "x": XIcon, }
View Source
var LogoIcon = &fyne.StaticResource{StaticName: "logo.png", StaticContent: logoBytes}
View Source
var MastodonIcon = &fyne.StaticResource{StaticName: "mastodon.svg", StaticContent: mastodonLogoBytes}
View Source
var SponsorIcon = &fyne.StaticResource{StaticName: "sponsor.svg", StaticContent: sponsorLogoBytes}
View Source
var Version = "dev"
View Source
var XIcon = &fyne.StaticResource{StaticName: "x.svg", StaticContent: xLogoBytes}
Functions ¶
Types ¶
type PicsortUI ¶
type PicsortUI struct {
// contains filtered or unexported fields
}
func (*PicsortUI) GetBinCount ¶
func (*PicsortUI) HideProgressDialog ¶
func (p *PicsortUI) HideProgressDialog()
func (*PicsortUI) LoadContent ¶
func (p *PicsortUI) LoadContent()
func (*PicsortUI) OnTypedKey ¶ added in v0.4.0
func (*PicsortUI) OnTypedRune ¶ added in v0.4.0
func (*PicsortUI) RefreshTabCount ¶ added in v0.4.0
func (*PicsortUI) SetProgress ¶
func (*PicsortUI) ShowErrorDialog ¶
func (*PicsortUI) ShowProgressDialog ¶
func (*PicsortUI) UpdatePreview ¶
type Thumbnail ¶
func (*Thumbnail) CreateRenderer ¶
func (ic *Thumbnail) CreateRenderer() fyne.WidgetRenderer
func (*Thumbnail) Tapped ¶
func (ic *Thumbnail) Tapped(*fyne.PointEvent)
type ThumbnailGridWrap ¶
func NewThumbnailGrid ¶
func NewThumbnailGrid(id int, ui CoreUI, d ThumbnailProvider) *ThumbnailGridWrap
func (*ThumbnailGridWrap) GetImagePaths ¶ added in v0.4.0
func (g *ThumbnailGridWrap) GetImagePaths() []string
func (*ThumbnailGridWrap) MoveImages ¶
func (g *ThumbnailGridWrap) MoveImages(destID int)
func (*ThumbnailGridWrap) Reload ¶
func (g *ThumbnailGridWrap) Reload()
func (*ThumbnailGridWrap) TypedKey ¶
func (g *ThumbnailGridWrap) TypedKey(key *fyne.KeyEvent)
func (*ThumbnailGridWrap) TypedRune ¶
func (g *ThumbnailGridWrap) TypedRune(r rune)
type ThumbnailProvider ¶
type ThumbnailProvider interface {
GetThumbnail(path string) image.Image
GetImagePaths(bindID int) []string
MoveImages(paths []string, sourceID, destID int) error
}
The ThumbnailProvider needs to provide way to get thumbnails and its paths, as well as a way to update the preview.
Click to show internal directories.
Click to hide internal directories.