#include <RenderedText.h>
Inheritance diagram for RenderedText:
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 |
Definition at line 24 of file RenderedText.h.
RenderedText::RenderedText | ( | ) |
RenderedText::~RenderedText | ( | ) | [virtual] |
Definition at line 32 of file RenderedText.cpp.
virtual void RenderedText::draw | ( | RenderSurface * | surface, | |
int | x, | |||
int | y, | |||
bool | destmasked = false | |||
) | [pure 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. |
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.
x | Returns the width | |
y | Returns the height |
Definition at line 42 of file RenderedText.h.
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().
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().