Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: w32std.h

Struct TSpriteMember

TSpriteMember

Support

Supported from 5.0

Description

Sprite member.

This structure is used to define the parameters of a sprite member, which can be added to a sprite or pointer cursor.

Defined in TSpriteMember:
iBitmap, iDrawMode, iInterval, iInvertMask, iMaskBitmap, iOffset


Member data


iBitmap

CFbsBitmap* iBitmap

Description

The bitmap to be displayed in the sprite or pointer cursor during the time interval specified by iInterval.

If NULL, the sprite or pointer cursor will be invisible for the time specified by iInterval.


iDrawMode

CGraphicsContext::TDrawMode iDrawMode

Description

Specifies the drawing mode to use when drawing iBitmap if the mask is NULL.


iInterval

TTimeIntervalMicroSeconds32 iInterval

Description

Time interval for which iBitmap is displayed.

Note that if only one sprite member is added to a sprite or pointer cursor, it will be displayed continuously, regardless of the value of iInterval.


iInvertMask

TBool iInvertMask

Description

EFalse if the mask bitmap is not to be inverted (the default) or ETrue if it is to be inverted.


iMaskBitmap

CFbsBitmap* iMaskBitmap

Description

The bitmap mask. This defines which areas of iBitmap are drawn to the screen. It enables the bitmap to have a non-rectangular shape on the screen. Areas which are not drawn to, retain the appearance of the window underneath the sprite or cursor.

The bits in iBitmap are AND'ed with those in iMaskBitmap before being drawn to the screen. In practice, the mask bitmap is normally white in those areas drawn to by iBitmap, and black in all other areas.

Note:


iOffset

TPoint iOffset

Description

Offset from the sprite's central position. Specifies an offset between the origin of iBitmap and the sprite or pointer cursor's origin. (The origin is the top left corner of the bitmap.)