APTR handle = CreatePointer(ULONG *rgb, int hx, int hy, int *width, int *height, struct hwTagList *tags);
Additionally, Hollywood passes the desired hotspot for the mouse pointer
to CreatePointer()
. A mouse pointer's hotspot is a single pixel within the
pointer imagery that is used to determine the mouse pointer's pixel position
by the operating system. The hotspot is described as an offset in pixels that
is relative to the upper-left corner of the mouse pointer image.
The desired pixel dimensions for the new mouse pointer are passed as pointer
values because your implementation of CreatePointer()
is allowed to
modify them in case there are some hardware restrictions for mouse
pointer dimensions on your system. You have to return the actual pixel
dimensions of the new mouse pointer in parameters 4 and 5.
The last parameter is a pointer to a tag list. This is reserved for future use
and is currently always NULL
.
NULL
if CreatePointer()
failed