background

package
v0.0.0-...-61f35a2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CustomWallpapersConfigDir string
)

Functions

func IsBackgroundFile

func IsBackgroundFile(file string) bool

func ListDirs

func ListDirs() []string

ListDirs list all background dirs

func NotifyChanged

func NotifyChanged()

func Prepare

func Prepare(file string) (string, error)

func SetCustomWallpaperDeleteCallback

func SetCustomWallpaperDeleteCallback(fn func(file string))

func SetLogger

func SetLogger(value *log.Logger)

Types

type Background

type Background struct {
	Id        string
	Deletable bool
}

func (*Background) Delete

func (info *Background) Delete() error

func (*Background) Thumbnail

func (info *Background) Thumbnail() (string, error)

type Backgrounds

type Backgrounds []*Background

func ListBackground

func ListBackground() Backgrounds

func (Backgrounds) Delete

func (bgs Backgrounds) Delete(uri string) error

func (Backgrounds) Get

func (bgs Backgrounds) Get(uri string) *Background

func (Backgrounds) ListGet

func (bgs Backgrounds) ListGet(uris []string) Backgrounds

func (Backgrounds) Thumbnail

func (bgs Backgrounds) Thumbnail(uri string) (string, error)

Jump to

Keyboard shortcuts

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