Skip to main content

Module cursor

Module cursor 

Source
Expand description

A classic skin’s cursors: which of its 29 cursor files Winamp shows over each part of each window, and the files themselves decoded. Winamp 5.666 loads each as Windows loads a cursor file, so a .cur name may hold an animated cursor, and picks one per part of the main window, the equalizer, the playlist, the video window and the gen windows.

Structs§

CursorFrame
One picture of a cursor: ARGB rows, and the point that is the pointer’s tip.
SkinCursor
A decoded cursor: its pictures and the steps an animated one shows them in.

Enums§

CursorKind
What a skin’s cursor stands for, and what the host shows when the skin has no file for it and no base skin is behind it (Winamp then shows an arrow with a small sign).

Constants§

CURSOR_FILES
The cursor files a classic skin holds, one entry per place a classic window shows one, each with what it stands for.

Functions§

decode
A cursor file: a .cur (or .ico) or an animated .ani, whatever its name says, as Windows loads a cursor file. None for what neither holds.
slot_at
The cursor slot (an index into CURSOR_FILES) at x, y of classic window win, w x h, as style’s Winamp picks it.