ScummVM API documentation
Ultima::Ultima8::RenderedText Class Referenceabstract
Inheritance diagram for Ultima::Ultima8::RenderedText:
Ultima::Ultima8::JPRenderedText Ultima::Ultima8::ShapeRenderedText Ultima::Ultima8::TTFRenderedText

Public Member Functions

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
 Draw self to a rendersurface blended (0xAABBGGRR, alpha is blend level)
 
virtual void getSize (int &x, int &y) const
 
virtual int getVlead ()
 Get vlead.
 

Protected Attributes

int _width
 
int _height
 
int _vLead
 

Member Function Documentation

◆ draw()

virtual void Ultima::Ultima8::RenderedText::draw ( RenderSurface surface,
int  x,
int  y,
bool  destmasked = false 
)
pure virtual

Draw self to a rendersurface.

Parameters
surfaceThe surface to draw to
xX coordinate of target
yY coordinate of target. This will be the top baseline.

Implemented in Ultima::Ultima8::TTFRenderedText, Ultima::Ultima8::JPRenderedText, and Ultima::Ultima8::ShapeRenderedText.

◆ getSize()

virtual void Ultima::Ultima8::RenderedText::getSize ( int &  x,
int &  y 
) const
inlinevirtual

Get dimensions.

Parameters
xReturns the width
yReturns the height

The documentation for this class was generated from the following file: