Location:
w32std.h
Link against: ws32.lib
RWsSprite
Supported from 5.0
Sprite.
This class defines functions to create and initialise a sprite, and
to set its position. It also inherits the functions of
RWsSpriteBase
.
|
Defined in RWsSprite
:
Construct()
, RWsSprite()
, SetPosition()
Inherited from MWsClientClass
:
WsHandle()
Inherited from RWsSpriteBase
:
Activate()
,
AppendMember()
,
Close()
,
UpdateMember()
RWsSprite();
Default C++ constructor.
This allows classes that contain an RWsSprite
to
be constructed before an RWsSession
exists.
Note:
Do not use this version of the constructor on its own.
Before an RWsSprite
object can be used it must be constructed
using the RWsSprite(RWsSession)
constructor described next. An
example of this might be as follows:
RWsSprite iSprite;
iSprite=RWsSprite(iWsSession);
RWsSprite(RWsSession &aWs);
Constructs a sprite with a window server session.
Initialisation must be completed using the
Construct()
function before the sprite can be activated using
RWsSpriteBase::Activate()
.
|
TInt Construct(RWindowTreeNode& aWindow, const TPoint& aPos, TInt aFlags);
Completes the construction of a sprite.
This function must be called before a sprite is activated using
RWsSpriteBase::Activate()
.
|
|
void SetPosition(const TPoint &aPos);
Sets the sprite position.
This function can be called before and after the sprite has been activated.
Note:
The sprite's initial position is set when the sprite is
constructed (see Construct()
).
|