TextSprite Class Reference

The sprite for a text on the canvas. More...

#include <textsprite.h>

Inheritance diagram for TextSprite:

Inheritance graph
[legend]
Collaboration diagram for TextSprite:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TextSprite (QString text, QString id, ThemeManager *theme, QGraphicsScene *scene)
 Constructor for the sprite.
 TextSprite (QString id, ThemeManager *theme, QGraphicsScene *scene)
 Constructor for the sprite.
void setText (QString text)
 Set a new text to the sprite.
virtual void changeTheme ()
 Main theme manager function.

Detailed Description

The sprite for a text on the canvas.

Definition at line 32 of file textsprite.h.


Constructor & Destructor Documentation

TextSprite::TextSprite QString  text,
QString  id,
ThemeManager theme,
QGraphicsScene *  scene
 

Constructor for the sprite.

Parameters:
text The text to display
id The theme id for the text
theme The theme manager
scene The graphics scene to use

Definition at line 31 of file textsprite.cpp.

References ThemeManager::updateTheme().

Here is the call graph for this function:

TextSprite::TextSprite QString  id,
ThemeManager theme,
QGraphicsScene *  scene
 

Constructor for the sprite.

Parameters:
id The theme id for the text
theme The theme manager
scene The graphics scene to use

Definition at line 42 of file textsprite.cpp.

References ThemeManager::updateTheme().

Here is the call graph for this function:


Member Function Documentation

void TextSprite::changeTheme  )  [virtual]
 

Main theme manager function.

Called when any theme change like a new theme or a theme size change occurs. This object needs to resiez and redraw then.

Implements Themable.

Definition at line 60 of file textsprite.cpp.

References ThemeManager::config(), ThemeManager::getScale(), Themable::setScale(), and Themable::thememanager().

Here is the call graph for this function:

void TextSprite::setText QString  text  ) 
 

Set a new text to the sprite.

Parameters:
text The text to display

Definition at line 51 of file textsprite.cpp.

References Themable::thememanager(), and ThemeManager::updateTheme().

Referenced by DisplayTwo::showScore(), and DisplayTwo::showText().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Tue May 1 09:34:40 2007 for LSkat by  doxygen 1.4.6