pref

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2015 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package pref contains constants for the preferences to set in the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyType

type KeyType uint8
const (
	// Path to the wallpaper
	Wallpaper KeyType = 1

	// Position of the wallpaper
	// Value should be one of the constants in the position package
	Position KeyType = 2

	// Event on which to change wallpaper
	// Value should be one of the constants in the event package
	ChangeEvent KeyType = 9

	// Directory of changing wallpapers
	Directory KeyType = 10

	// Interval at which to change wallpaper in seconds
	// Only has an effect if 'Directory' is set
	Interval KeyType = 11

	// Whether or not to select wallpaper at random when changing
	// Only has an effect if 'Directory' is set
	Random KeyType = 12

	// Current wallpaper if 'Directory' is set
	Current KeyType = 16
)

type Pref

type Pref struct {
	Key   KeyType
	Value ValueType
}

Type Pref represents a preference in the database.

type Prefs

type Prefs map[KeyType]ValueType

type ValueType

type ValueType interface{}

Directories

Path Synopsis
Package event contains constants for the events used to change wallpaper.
Package event contains constants for the events used to change wallpaper.
Package position contains constants for the possible positions of the wallpaper.
Package position contains constants for the possible positions of the wallpaper.

Jump to

Keyboard shortcuts

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