ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Text renderer. More...

#include <text.h>

Inheritance diagram for Stark::VisualText:
Collaboration diagram for Stark::VisualText:

List of all members.

Public Member Functions

 VisualText (Gfx::Driver *gfx)
 ~VisualText () override
Common::Rect getRect ()
void setText (const Common::String &text)
void setColor (uint32 color)
void setBackgroundColor (uint32 color)
void setTargetWidth (uint32 width)
void setTargetHeight (uint32 height)
void setFont (FontProvider::FontType type, int32 customFontIndex=-1)
uint getTargetWidth ()
uint getTargetHeight ()
void render (const Common::Point &position)
void resetTexture ()

Static Public Attributes

static const VisualType TYPE = Visual::kImageText

Private Member Functions

void createTexture ()
void freeTexture ()
bool isBlank ()
 Check whether the text is blank.

Private Attributes

Gfx::Driver_gfx
Gfx::SurfaceRenderer_surfaceRenderer
Gfx::Texture_texture
Common::String _text
uint32 _color
uint32 _backgroundColor
uint32 _targetWidth
uint32 _targetHeight
Common::Rect _originalRect
FontProvider::FontType _fontType
int32 _fontCustomIndex

Detailed Description

Text renderer.

Definition at line 43 of file text.h.


Constructor & Destructor Documentation

Stark::VisualText::VisualText ( Gfx::Driver gfx  )  [explicit]

Definition at line 40 of file text.cpp.

Stark::VisualText::~VisualText (  )  [override]

Definition at line 54 of file text.cpp.


Member Function Documentation

void Stark::VisualText::createTexture (  )  [private]

Definition at line 109 of file text.cpp.

void Stark::VisualText::freeTexture (  )  [private]

Definition at line 146 of file text.cpp.

Common::Rect Stark::VisualText::getRect (  ) 

Definition at line 59 of file text.cpp.

uint Stark::VisualText::getTargetHeight (  )  [inline]

Definition at line 60 of file text.h.

uint Stark::VisualText::getTargetWidth (  )  [inline]

Definition at line 59 of file text.h.

bool Stark::VisualText::isBlank (  )  [private]

Check whether the text is blank.

Definition at line 164 of file text.cpp.

void Stark::VisualText::render ( const Common::Point position  ) 

Definition at line 151 of file text.cpp.

void Stark::VisualText::resetTexture (  ) 

Definition at line 159 of file text.cpp.

void Stark::VisualText::setBackgroundColor ( uint32  color  ) 

Definition at line 80 of file text.cpp.

void Stark::VisualText::setColor ( uint32  color  ) 

Definition at line 73 of file text.cpp.

void Stark::VisualText::setFont ( FontProvider::FontType  type,
int32  customFontIndex = -1 
)

Definition at line 101 of file text.cpp.

void Stark::VisualText::setTargetHeight ( uint32  height  ) 

Definition at line 94 of file text.cpp.

void Stark::VisualText::setTargetWidth ( uint32  width  ) 

Definition at line 87 of file text.cpp.

void Stark::VisualText::setText ( const Common::String text  ) 

Definition at line 66 of file text.cpp.


Member Data Documentation

Definition at line 78 of file text.h.

Definition at line 77 of file text.h.

Definition at line 84 of file text.h.

Definition at line 83 of file text.h.

Definition at line 72 of file text.h.

Definition at line 81 of file text.h.

Definition at line 73 of file text.h.

Definition at line 80 of file text.h.

Definition at line 79 of file text.h.

Definition at line 76 of file text.h.

Definition at line 74 of file text.h.

const VisualType Stark::VisualText::TYPE = Visual::kImageText [static]

Definition at line 45 of file text.h.


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


Generated on Sat Jan 12 2019 05:05:15 for ResidualVM by doxygen 1.7.1
curved edge   curved edge