#include <font_sprite.h>
Inheritance diagram for CL_Font_Sprite:
Public Member Functions | |
Construction | |
| CL_Font_Sprite () | |
| Constructs a sprite font. | |
| CL_Font_Sprite (CL_GraphicContext &gc, const CL_StringRef &resource_id, CL_ResourceManager *resources) | |
| Constructs a Font Sprite. | |
| ~CL_Font_Sprite () | |
Attributes | |
| CL_FontProvider_Sprite * | get_provider () const |
| Retrieves the font provider. | |
Operations | |
| void | set_font_metrics (const CL_FontMetrics &metrics) |
| Set the font metrics for the font. | |
| void | draw_text (CL_GraphicContext &gc, float xpos, float ypos, float scale_x, float scale_y, const CL_StringRef &text, const CL_Colorf &color=CL_Colorf::white) |
| Draw scaled text. | |
Attributes | |
| bool | is_null () |
| Is Null. | |
Operations | |
| void | draw_text (CL_GraphicContext &gc, int x, int y, const CL_StringRef &text, const CL_Colorf &color=CL_Colorf::white) |
| Print text on gc. | |
| void | draw_text (CL_GraphicContext &gc, float x, float y, const CL_StringRef &text, const CL_Colorf &color=CL_Colorf::white) |
| Print text on gc. | |
| void | draw_text (CL_GraphicContext &gc, const CL_Pointf &position, const CL_StringRef &text, const CL_Colorf &color=CL_Colorf::white) |
| Print text on gc. | |
| CL_Size | get_text_size (CL_GraphicContext &gc, const CL_StringRef &text) |
| Calculate size of text string. | |
| CL_FontMetrics | get_font_metrics (CL_GraphicContext &gc) |
| Retrieves font metrics description for the selected font. | |
| int | get_character_index (CL_GraphicContext &gc, const CL_String &text, const CL_Point &point) |
| Get the character index at a specified point. | |
|
|
Constructs a sprite font.
|
|
||||||||||||||||
|
Constructs a Font Sprite.
|
|
|
|
|
||||||||||||||||||||
|
Print text on gc. Multiline text (seperated by /n) is supported
|
|
||||||||||||||||||||||||
|
Print text on gc. Multiline text (seperated by /n) is supported
|
|
||||||||||||||||||||||||
|
Print text on gc. Multiline text (seperated by /n) is supported
|
|
||||||||||||||||||||||||||||||||
|
Draw scaled text.
|
|
||||||||||||||||
|
Get the character index at a specified point. Multiline text (seperated by /n) is supported
|
|
|
Retrieves font metrics description for the selected font.
|
|
|
Retrieves the font provider.
Reimplemented from CL_Font. |
|
||||||||||||
|
Calculate size of text string.
Multiline text (seperated by /n) is supported |
|
|
Is Null.
|
|
|
Set the font metrics for the font.
|
1.4.6