#include <JPRenderedText.h>
Inheritance diagram for JPRenderedText:
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< PositionedText > | lines |
ShapeFont * | font |
unsigned int | fontnum |
Definition at line 27 of file JPRenderedText.h.
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.
void JPRenderedText::draw | ( | RenderSurface * | surface, | |
int | x, | |||
int | y, | |||
bool | destmasked = false | |||
) | [virtual] |
Draw self to a rendersurface.
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.
ShapeFont* JPRenderedText::font [protected] |
unsigned int JPRenderedText::fontnum [protected] |
std::list<PositionedText> JPRenderedText::lines [protected] |