eosim::graphic::TextSprite Class Reference
[Graphic Simulations]

#include <eosim/graphic/Display.hpp>

List of all members.


Detailed Description

Text Sprite.

Author:
Bruno Martínez, Fernando Pardo and Sebastián Alaggia
Version:
1.1.1
Date:
2005
Note:
In order to use this Sprite the font timesi.ttf must be in the application directory.


Public Member Functions

 TextSprite ()
 This operation creates a Sprite with undefined state. It is an error to invoke any operation except assign it to another Sprite.
 TextSprite (Display &dis, const char *text, double size, double x, double y)
 This is a constructor of Sprite.
void setText (const char *text)
 This operation asigns a text to the Sprite.
void setMoves (MoveAction m)
 This operation assigns a move sequence to a TextSprite (see Sprite::setMoves).
void setVisible (bool v)
 This operation makes the Sprite visible.
bool getVisible () const
 This operation returns true if the Sprite is visible.


Constructor & Destructor Documentation

eosim::graphic::TextSprite::TextSprite ( Display dis,
const char *  text,
double  size,
double  x,
double  y 
)

This is a constructor of Sprite.

It returns a Sprite assigned to dis. The Sprite is drawn with a text, placed in (x,y).


Generated on Tue Oct 14 16:49:01 2008 for EOSimulator by  doxygen 1.5.2