cursor

package
v0.0.0-...-7ad2634 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Size   uint32 // nominal size for matching
	Width  uint32 // actual width
	Height uint32 // actual height
	XHot   uint32 // hot spot x
	YHot   uint32 // hot spot y
	Delay  uint32 // delay between animation frames in milliseconds
	Pixels []byte
	// contains filtered or unexported fields
}

func LoadImage

func LoadImage(theme, name string, size int) (*Image, error)

func LoadImageFromFile

func LoadImageFromFile(filename string, size int) (*Image, error)

func (*Image) Img

func (img *Image) Img() *image.RGBA

func (*Image) LoadCursor

func (img *Image) LoadCursor(conn *x.Conn, name string) (x.Cursor, error)

type Images

type Images []*Image

func LoadImages

func LoadImages(theme, name string, size int) (Images, error)

func LoadImagesFromFile

func LoadImagesFromFile(filename string, size int) (Images, error)

func (Images) LoadCursor

func (images Images) LoadCursor(conn *x.Conn, name string) (x.Cursor, error)

func (Images) ToGIF

func (images Images) ToGIF() *gif.GIF

Jump to

Keyboard shortcuts

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