RenderedText Class Reference

#include <RenderedText.h>

Inheritance diagram for RenderedText:

JPRenderedText ShapeRenderedText TTFRenderedText List of all members.

Public Member Functions

 RenderedText ()
virtual ~RenderedText ()
virtual void draw (RenderSurface *surface, int x, int y, bool destmasked=false)=0
virtual void drawBlended (RenderSurface *surface, int x, int y, uint32 col, bool destmasked=false)=0
virtual void getSize (int &x, int &y)
virtual int getVlead ()
 ENABLE_RUNTIME_CLASSTYPE ()

Protected Attributes

int width
int height
int vlead

Detailed Description

Definition at line 24 of file RenderedText.h.


Constructor & Destructor Documentation

RenderedText::RenderedText (  ) 

RenderedText::~RenderedText (  )  [virtual]

Definition at line 32 of file RenderedText.cpp.


Member Function Documentation

virtual void RenderedText::draw ( RenderSurface surface,
int  x,
int  y,
bool  destmasked = false 
) [pure virtual]

Draw self to a rendersurface.

Parameters:
surface The surface to draw to
x X coordinate of target
y Y coordinate of target. This will be the top baseline.

Implemented in JPRenderedText, ShapeRenderedText, and TTFRenderedText.

Referenced by SliderGump::drawText(), SKFPlayer::paint(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), PaperdollGump::PaintStat(), TextWidget::PaintThis(), GameWidget::PaintThis(), EditWidget::PaintThis(), CreditsGump::PaintThis(), and CreditsGump::Run().

virtual void RenderedText::drawBlended ( RenderSurface surface,
int  x,
int  y,
uint32  col,
bool  destmasked = false 
) [pure virtual]

Draw self to a rendersurface blended (0xAABBGGRR, alpha is blend level).

Implemented in JPRenderedText, ShapeRenderedText, and TTFRenderedText.

Referenced by SKFPlayer::paint(), TextWidget::PaintComposited(), and TextWidget::PaintThis().

RenderedText::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented in JPRenderedText, ShapeRenderedText, and TTFRenderedText.

virtual void RenderedText::getSize ( int &  x,
int &  y 
) [inline, virtual]

Get dimensions.

Parameters:
x Returns the width
y Returns the height

Definition at line 42 of file RenderedText.h.

References height, and width.

Referenced by CreditsGump::Run().

virtual int RenderedText::getVlead (  )  [inline, virtual]

Get vlead.

Definition at line 45 of file RenderedText.h.

References vlead.

Referenced by TextWidget::getVlead(), and CreditsGump::Run().


Member Data Documentation

int RenderedText::height [protected]

Definition at line 50 of file RenderedText.h.

Referenced by TTFRenderedText::draw(), TTFRenderedText::drawBlended(), getSize(), JPRenderedText::JPRenderedText(), ShapeRenderedText::ShapeRenderedText(), and TTFRenderedText::TTFRenderedText().

int RenderedText::vlead [protected]

Definition at line 51 of file RenderedText.h.

Referenced by getVlead(), JPRenderedText::JPRenderedText(), ShapeRenderedText::ShapeRenderedText(), and TTFRenderedText::TTFRenderedText().

int RenderedText::width [protected]

Definition at line 50 of file RenderedText.h.

Referenced by TTFRenderedText::draw(), JPRenderedText::draw(), TTFRenderedText::drawBlended(), JPRenderedText::drawBlended(), getSize(), JPRenderedText::JPRenderedText(), ShapeRenderedText::ShapeRenderedText(), and TTFRenderedText::TTFRenderedText().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:49 2007 for pentagram by  doxygen 1.4.7