engine/tolua/font.pkg
raw| 1 | class CFont |
| 2 | { |
| 3 | static CFont *New(const std::string ident, CGraphic *g); |
| 4 | static CFont *Get(const std::string ident); |
| 5 | |
| 6 | int Height(); |
| 7 | int Width(const std::string text); |
| 8 | CFont *PlainText(); |
| 9 | }; |
| 10 | |
| 11 | |
| 12 | #define MaxFontColors 9 |
| 13 | |
| 14 | class CFontColor |
| 15 | { |
| 16 | static CFontColor *New(const std::string ident); |
| 17 | static CFontColor *Get(const std::string ident); |
| 18 | |
| 19 | CColor Colors[MaxFontColors]; |
| 20 | }; |
| 21 |