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 (const Color &color)
void setBackgroundColor (const Color &color)
void setAlign (Graphics::TextAlign align)
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
Gfx::Texture_bgTexture
Common::String _text
Color _color
Color _backgroundColor
Graphics::TextAlign _align
uint32 _targetWidth
uint32 _targetHeight
Common::Rect _originalRect
FontProvider::FontType _fontType
int32 _fontCustomIndex

Detailed Description

Text renderer.

Definition at line 61 of file text.h.


Constructor & Destructor Documentation

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

Definition at line 41 of file text.cpp.

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

Definition at line 58 of file text.cpp.


Member Function Documentation

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

Definition at line 241 of file text.cpp.

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

Definition at line 319 of file text.cpp.

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

Definition at line 63 of file text.cpp.

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

Definition at line 79 of file text.h.

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

Definition at line 78 of file text.h.

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

Check whether the text is blank.

Definition at line 342 of file text.cpp.

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

Definition at line 326 of file text.cpp.

void Stark::VisualText::resetTexture (  ) 

Definition at line 338 of file text.cpp.

void Stark::VisualText::setAlign ( Graphics::TextAlign  align  ) 

Definition at line 95 of file text.cpp.

void Stark::VisualText::setBackgroundColor ( const Color color  ) 

Definition at line 86 of file text.cpp.

void Stark::VisualText::setColor ( const Color color  ) 

Definition at line 77 of file text.cpp.

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

Definition at line 116 of file text.cpp.

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

Definition at line 109 of file text.cpp.

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

Definition at line 102 of file text.cpp.

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

Definition at line 70 of file text.cpp.


Member Data Documentation

Definition at line 99 of file text.h.

Definition at line 98 of file text.h.

Definition at line 94 of file text.h.

Definition at line 97 of file text.h.

Definition at line 105 of file text.h.

Definition at line 104 of file text.h.

Definition at line 91 of file text.h.

Definition at line 102 of file text.h.

Definition at line 92 of file text.h.

Definition at line 101 of file text.h.

Definition at line 100 of file text.h.

Definition at line 96 of file text.h.

Definition at line 93 of file text.h.

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

Definition at line 63 of file text.h.


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


Generated on Sat Jul 13 2019 05:04:53 for ResidualVM by doxygen 1.7.1
curved edge   curved edge