Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PhCursorDef_t

Bitmap for the cursor

Synopsis:

typedef struct Ph_cursor_def {
    PhRegionDataHdr_t   hdr;
    PhPoint_t           size1;
    PhPoint_t           offset1;
    PgColor_t           color1;
    char                bytesperline1;
    PhPoint_t           size2;
    PhPoint_t           offset2;
    PgColor_t           color2;
    char                bytesperline2;
    char                Spare[14];
    char                images[1];
} PhCursorDef_t;

Description:

The PhCursorDef_t structure is used to define bitmaps to be used as the cursor. The members include at least:

hdr
A pointer to a PhRegionDataHdr_t structure that defines the region data header.
size1
The dimensions of the first bitmap plane, in pixels.
offset1
The position of the upper-left corner of the first plane of the bitmap, relative to the hot spot.
color1
The color of the first bitmap plane.
bytesperline1
The number of bytes per line for the first bitmap plane.
size2
The dimensions of the second bitmap plane, in pixels.
offset2
The position of the upper-left corner of the second plane of the bitmap, relative to the hot spot.
color2
The color of the second bitplane. You can't have more than two bitplanes.
bytesperline2
The number of bytes per line for the second bitmap plane.
images
The bitmap image data, as a series of 1-bit-per-pixel planes.

Note: Most graphics drivers don't support alpha in the cursor colors.

Classification:

Photon

See also:

PgColor_t, PhPoint_t, PhRegionDataHdr_t

Pt_ARG_BITMAP_CURSOR (PtWidget) in the Widget Reference