#include <bitmapfont.h>
|
| | BitmapFont (const std::string &name) |
| |
| void | load (const OTMLNodePtr &fontNode) |
| | Load font from otml node. More...
|
| |
| void | drawText (const std::string &text, const Point &startPos) |
| | Simple text render starting at startPos. More...
|
| |
| void | drawText (const std::string &text, const Rect &screenCoords, Fw::AlignmentFlag align=Fw::AlignTopLeft) |
| | Advanced text render delimited by a screen region and alignment. More...
|
| |
| void | calculateDrawTextCoords (CoordsBuffer &coordsBuffer, const std::string &text, const Rect &screenCoords, Fw::AlignmentFlag align=Fw::AlignTopLeft) |
| |
| const std::vector< Point > & | calculateGlyphsPositions (const std::string &text, Fw::AlignmentFlag align=Fw::AlignTopLeft, Size *textBoxSize=nullptr) |
| | Calculate glyphs positions to use on render, also calculates textBoxSize if wanted. More...
|
| |
| Size | calculateTextRectSize (const std::string &text) |
| | Simulate render and calculate text size. More...
|
| |
| std::string | wrapText (const std::string &text, int maxWidth) |
| |
| std::string | getName () |
| |
| int | getGlyphHeight () |
| |
| const Rect * | getGlyphsTextureCoords () |
| |
| const Size * | getGlyphsSize () |
| |
| const TexturePtr & | getTexture () |
| |
| int | getYOffset () |
| |
| Size | getGlyphSpacing () |
| |
| | shared_object () |
| |
| virtual | ~shared_object () |
| |
| void | add_ref () |
| |
| void | dec_ref () |
| |
| refcount_t | ref_count () |
| |
| template<typename T > |
| stdext::shared_object_ptr< T > | static_self_cast () |
| |
| template<typename T > |
| stdext::shared_object_ptr< T > | dynamic_self_cast () |
| |
| template<typename T > |
| stdext::shared_object_ptr< T > | const_self_cast () |
| |
Definition at line 32 of file bitmapfont.h.
◆ BitmapFont()
| BitmapFont::BitmapFont |
( |
const std::string & |
name | ) |
|
|
inline |
◆ calculateDrawTextCoords()
◆ calculateGlyphsPositions()
Calculate glyphs positions to use on render, also calculates textBoxSize if wanted.
Definition at line 172 of file bitmapfont.cpp.
◆ calculateTextRectSize()
| Size BitmapFont::calculateTextRectSize |
( |
const std::string & |
text | ) |
|
Simulate render and calculate text size.
Definition at line 256 of file bitmapfont.cpp.
◆ drawText() [1/2]
| void BitmapFont::drawText |
( |
const std::string & |
text, |
|
|
const Point & |
startPos |
|
) |
| |
Simple text render starting at startPos.
Definition at line 80 of file bitmapfont.cpp.
◆ drawText() [2/2]
Advanced text render delimited by a screen region and alignment.
Definition at line 87 of file bitmapfont.cpp.
◆ getGlyphHeight()
| int BitmapFont::getGlyphHeight |
( |
| ) |
|
|
inline |
◆ getGlyphSpacing()
| Size BitmapFont::getGlyphSpacing |
( |
| ) |
|
|
inline |
◆ getGlyphsSize()
| const Size* BitmapFont::getGlyphsSize |
( |
| ) |
|
|
inline |
◆ getGlyphsTextureCoords()
| const Rect* BitmapFont::getGlyphsTextureCoords |
( |
| ) |
|
|
inline |
◆ getName()
| std::string BitmapFont::getName |
( |
| ) |
|
|
inline |
◆ getTexture()
◆ getYOffset()
| int BitmapFont::getYOffset |
( |
| ) |
|
|
inline |
◆ load()
◆ wrapText()
| std::string BitmapFont::wrapText |
( |
const std::string & |
text, |
|
|
int |
maxWidth |
|
) |
| |
The documentation for this class was generated from the following files: