ShapeRenderedText Class Reference

#include <ShapeRenderedText.h>

Inheritance diagram for ShapeRenderedText:

RenderedText List of all members.

Public Member Functions

 ShapeRenderedText (std::list< PositionedText > &lines, int width, int height, int vlead, ShapeFont *font)
virtual ~ShapeRenderedText ()
virtual void draw (RenderSurface *surface, int x, int y, bool destmasked=false)
virtual void drawBlended (RenderSurface *surface, int x, int y, uint32 col, bool destmasked=false)
 ENABLE_RUNTIME_CLASSTYPE ()

Protected Attributes

std::list< PositionedTextlines
ShapeFontfont

Detailed Description

Definition at line 27 of file ShapeRenderedText.h.


Constructor & Destructor Documentation

ShapeRenderedText::ShapeRenderedText ( std::list< PositionedText > &  lines,
int  width,
int  height,
int  vlead,
ShapeFont font 
)

Definition at line 28 of file ShapeRenderedText.cpp.

References RenderedText::height, RenderedText::vlead, and RenderedText::width.

ShapeRenderedText::~ShapeRenderedText (  )  [virtual]

Definition at line 38 of file ShapeRenderedText.cpp.


Member Function Documentation

void ShapeRenderedText::draw ( RenderSurface surface,
int  x,
int  y,
bool  destmasked = false 
) [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.

Implements RenderedText.

Definition at line 43 of file ShapeRenderedText.cpp.

References RenderSurface::Fill32(), font, ShapeFont::getBaseline(), ShapeFont::getHlead(), ShapeFont::getWidth(), lines, and RenderSurface::Paint().

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

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

Implements RenderedText.

Definition at line 75 of file ShapeRenderedText.cpp.

References font, ShapeFont::getHlead(), ShapeFont::getWidth(), lines, and RenderSurface::PaintHighlight().

ShapeRenderedText::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from RenderedText.


Member Data Documentation

ShapeFont* ShapeRenderedText::font [protected]

Definition at line 41 of file ShapeRenderedText.h.

Referenced by draw(), and drawBlended().

std::list<PositionedText> ShapeRenderedText::lines [protected]

Definition at line 40 of file ShapeRenderedText.h.

Referenced by draw(), and drawBlended().


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