A text object on a QwSpriteField. More...
#include <QwSpriteField.h>
Inherits QwSpriteFieldGraphic.
A QwTextSprite has text, a font, color, and position.
Construct a QwTextSprite with the text " Construct a QwTextSprite with the text t.
The text should not contain newlines.
Construct a QwTextSprite with the text t and font f.
The text should not contain newlines.
Destruct the sprite.
Adds the sprite to the appropriate chunks.
For collision detection.
For collision detection.
Reimplemented from QwSpriteFieldGraphic.
Returns the bounding rectangle of the text.
Draws the text.
Toggles visibility.
Moves text by the given displacements.
Sets the position of the bottom-left corner of the text.
Removes the sprite to the appropriate chunks.
Returns 3.
See also: QwSpriteFieldGraphic::rtti().
Sets the color of the text.
Sets the font in which the text is drawn.
Sets the text to be displayed. The text may contain newlines.
Sets the alignment flags. These are a bitwise OR or some of the
flags available to QPainter::drawText().
The DontClip and WordBreak flags are not supported.
Returns the currently set alignment flags.
See also: setTextFlags().
Returns the X-position of the left edge of the text.
Sets the X-positions of the bottom-left corner of the text.
Returns the Y-position of the top edge of the text.
Sets the Y-positions of the bottom-left corner of the text.
Return the altitude of the text.
Reimplemented from QwSpriteFieldGraphic.
Sets the altitude of the text.
This file is
copyright © 1995-97
Warwick Allison.
It was generated from the following files:
QwTextSprite::QwTextSprite ( const char * t )
QwTextSprite::QwTextSprite ( const char * t, QFont f )
QwTextSprite::~QwTextSprite ()
[virtual]
void QwTextSprite::addToChunks ()
[protected]
bool QwTextSprite::at ( const class QRect & r ) const
bool QwTextSprite::at ( int x, int y ) const
[virtual]
const QRect& QwTextSprite::boundingRect ()
void QwTextSprite::draw ( QPainter & painter )
[virtual protected]
void QwTextSprite::makeVisible ( bool yes )
[virtual protected]
void QwTextSprite::moveBy ( int dx, int dy )
void QwTextSprite::moveTo ( int x, int y )
void QwTextSprite::removeFromChunks ()
[protected]
int QwTextSprite::rtti () const
[virtual]
void QwTextSprite::setColor ( const QColor & c )
void QwTextSprite::setFont ( const QFont & f )
void QwTextSprite::setText ( const char * t )
void QwTextSprite::setTextFlags ( int f )
int QwTextSprite::textFlags () const
int QwTextSprite::x () const
void QwTextSprite::x ( int c )
int QwTextSprite::y () const
void QwTextSprite::y ( int c )
int QwTextSprite::z () const
[virtual]
void QwTextSprite::z ( int a )
Generated at 09:21, 1998/12/09 for Qt version 1.4 by the warwick at Troll Tech