struct hwIconList *list = GetIconImages(APTR handle, struct hwTagList
*tags);
struct hwIconList
list.
Note that your plugin is responsible for freeing the list returned by this
function. The list can't be freed by hw_FreeIcons()
because it has been allocated by your plugin. You may free a list returned
by GetIconImages() as soon as Hollywood calls GetIconImages() again or
when Hollywood calls your ClosePlugin() function.
The struct hwIconList that GetIconImages() needs to return looks
like this:
struct hwIconList
{
struct hwIconList *Succ;
APTR Data;
int Width;
int Height;
ULONG Flags;
ULONG *Palette;
ULONG TransPen;
int Depth;
APTR UserData;
};
|
For each node in the list, struct hw_IconList must be initialized as
follows:
Succ:NULL if this node is the last one.
Data:Palette member (see below). The pixel buffer's size must be exactly
width * height * bpp. No row padding must be used.
Width:
Height:
Flags:
HWICONFLAGS_DEFAULT:
HWICONFLAGS_SELECTED:
HWICONFLAGS_OPAQUE:
Palette:ULONGs which contains the palette colors for the image. The palette
colors are stored as raw RGB values. Note that this must always be set
to a buffer containing 256 ULONG entries. Even if you set Depth to
something less than 8, the palette you specify here must still contain
256 entries.
TransPen:TransPen to HWPEN_NONE.
Depth:
NULLNULL on error