Mana
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TextChunk Class Reference

Public Member Functions

 TextChunk (const std::string &text)
 
void render (Graphics *graphics, int x, int y, TTF_Font *font, std::unique_ptr< Image > &img, float scale)
 

Public Attributes

const std::string text
 
std::unique_ptr< Imageregular
 
std::unique_ptr< Imageoutlined
 

Detailed Description

Definition at line 49 of file truetypefont.cpp.

Constructor & Destructor Documentation

◆ TextChunk()

TextChunk::TextChunk ( const std::string &  text)
inline

Definition at line 52 of file truetypefont.cpp.

Member Function Documentation

◆ render()

void TextChunk::render ( Graphics graphics,
int  x,
int  y,
TTF_Font *  font,
std::unique_ptr< Image > &  img,
float  scale 
)

Definition at line 67 of file truetypefont.cpp.

Member Data Documentation

◆ outlined

std::unique_ptr<Image> TextChunk::outlined

Definition at line 64 of file truetypefont.cpp.

◆ regular

std::unique_ptr<Image> TextChunk::regular

Definition at line 63 of file truetypefont.cpp.

◆ text

const std::string TextChunk::text

Definition at line 62 of file truetypefont.cpp.


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