Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrBadMagic = errors.New("bad magic")
ErrBadMagic indicates an unrecognized magic number when attempting to load a cursor.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Subtype CommentSubtype Comment string }
Comment is a comment section of an Xcursor file.
type CommentSubtype ¶
type CommentSubtype uint32
const ( CommentSubtypeCopyright CommentSubtype = 1 + iota CommentSubtypeLicense CommentSubtypeOther )
type Cursor ¶
Cursor contains information decoded from a Xcursor file.
func DecodeFile ¶
DecodeFile decodes the Xcursor file at path.
type Theme ¶
Theme is an Xcursor theme.
func LoadTheme ¶
LoadTheme loads the named theme from the system search paths. It resepects the $XURSOR_PATH and $XDG_DATA_HOME environment variables when looking. If the theme has an index.theme file and that file lists other themes to inherit from, those themes are also loaded and their cursors are added to the returned theme.
func LoadThemeFromDir ¶
LoadThemeFromDir loads a theme from the directory at path, ignoring the system search path completely. The returned theme's name is the basename of the given path.