JPRenderedText Class Reference

#include <JPRenderedText.h>

Inheritance diagram for JPRenderedText:

RenderedText List of all members.

Public Member Functions

 JPRenderedText (std::list< PositionedText > &lines, int width, int height, int vlead, ShapeFont *font, unsigned int fontnum)
virtual ~JPRenderedText ()
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
unsigned int fontnum

Detailed Description

Definition at line 27 of file JPRenderedText.h.


Constructor & Destructor Documentation

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

Definition at line 32 of file JPRenderedText.cpp.

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

JPRenderedText::~JPRenderedText (  )  [virtual]

Definition at line 42 of file JPRenderedText.cpp.


Member Function Documentation

void JPRenderedText::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 47 of file JPRenderedText.cpp.

References RenderSurface::Fill32(), font, fontnum, PaletteManager::get_instance(), ShapeFont::getBaseline(), Shape::getFrame(), ShapeFont::getHlead(), Shape::getPalette(), PaletteManager::getPalette(), if(), lines, RenderSurface::Paint(), pal, PaletteManager::Pal_JPFontStart, Shape::setPalette(), Pentagram::shiftjis_to_ultima8(), and RenderedText::width.

void JPRenderedText::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 93 of file JPRenderedText.cpp.

References font, fontnum, PaletteManager::get_instance(), Shape::getFrame(), ShapeFont::getHlead(), Shape::getPalette(), PaletteManager::getPalette(), if(), lines, RenderSurface::PaintHighlight(), pal, PaletteManager::Pal_JPFontStart, Shape::setPalette(), Pentagram::shiftjis_to_ultima8(), and RenderedText::width.

JPRenderedText::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from RenderedText.


Member Data Documentation

ShapeFont* JPRenderedText::font [protected]

Definition at line 42 of file JPRenderedText.h.

Referenced by draw(), and drawBlended().

unsigned int JPRenderedText::fontnum [protected]

Definition at line 43 of file JPRenderedText.h.

Referenced by draw(), and drawBlended().

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

Definition at line 41 of file JPRenderedText.h.

Referenced by draw(), and drawBlended().


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