Supported Browsers Home   
color_t Previous   
event_t Next   
Type Definitions Up   

cursor_t

Declaration

typedef union {
    mono_cursor_t       m;
    color16_cursor_t    c16;
    color256_cursor_t   c256;
    colorRGB_cursor_t   cRGB;
    colorRGBA_cursor_t  cRGBA;
    } cursor_t

Prototype In

mgraph.h

Description

Structure representing a loaded mouse cursor. This is the structure of the mouse cursor data after it has been loaded from disk by the MGL, and is used to set the mouse cursor shape. You can build your own mouse cursors manually by filling in this structure.

Note that this structure is actually a union of different cursor structures, and you should examine the 'colors' member of the 'm' member to determine the number of colors in the cursor, and then use the approproate union member to access the cursor image data directly. The size of the cursor image is dependent on the type of cursor stored in the structure.

Members

m

Structure for monochrome or 2-color cursors

c16

Structure for 4-bit cursors (16 colors)

c256

Structure for 8-bit cursors (256 colors)

cRGB

Structure for 24-bit RGB color cursors (16.7M colors)

cRGBA

Structure for 32-bit RGBA alpha blended cursors (16.7M colors)

 

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