#include <ShapeRenderedText.h>
Inheritance diagram for ShapeRenderedText:
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< PositionedText > | lines |
ShapeFont * | font |
Definition at line 27 of file ShapeRenderedText.h.
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.
void ShapeRenderedText::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 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.
ShapeFont* ShapeRenderedText::font [protected] |
std::list<PositionedText> ShapeRenderedText::lines [protected] |