xcursor

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package xcursor loads and parses the X cursor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CursorTheme

type CursorTheme struct {
	SearchPaths []string
	// contains filtered or unexported fields
}

CursorTheme represents an Xcursor theme

func Load

func Load(name string) *CursorTheme

Load loads an Xcursor theme by name

func (*CursorTheme) LoadIcon

func (c *CursorTheme) LoadIcon(iconName string) string

LoadIcon loads an Xcursor icon path by icon name from theme

type Image

type Image struct {
	PixRGBA  []uint8
	PixBGRA  []uint8
	Height   uint32
	HotspotX uint32
	HotspotY uint32
	Delay    uint32
	Size     uint32
	Width    uint32
}

Image represents an Xcursor cursor

func ParseXcursor

func ParseXcursor(content []byte) (imgs []*Image, err error)

ParseXcursor parses X cursor data

Jump to

Keyboard shortcuts

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