GA_monoCursor

Declaration

typedef struct {
    N_uint8     XORMask[512];
    N_uint8     ANDMask[512];
    N_uint32    HotX;
    N_uint32    HotY;
    } GA_monoCursor

Prototype In

snap/graphics.h

Description

Hardware monochrome cursor structure. This structure defines a monochrome hardware cursor that is downloaded to the hardware. The cursor is defined as a 64x64 image with an AND and XOR mask. The definition of the AND mask, XOR mask and the pixels that will appear on the screen is as follows (same as the Microsoft Windows cursor format):

AND XOR Result
0   0   Transparent (color from screen memory)
0   1   Invert (complement of color from screen memory)
1   0   Cursor background color
1   1   Cursor foreground color

The HotX and HotY members define the hot spot for the cursor, which is the location where the logical mouse pointer is located in the cursor image. When you click the mouse, the pixel under the hot-spot is the pixel selected.

Members

XORMask

Cursor XOR mask

ANDMask

Cursor AND mask

HotX

Cursor X coordinate hot spot

HotY

Cursor Y coordinate hot spot

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com