#include <MercuryText.h>
Inheritance diagram for MercuryText:


Public Member Functions | |
| MercuryText () | |
| virtual | ~MercuryText () | 
| virtual void | Init () | 
| void | SetText (const MString &text) | 
| MString | GetText () const | 
| void | SetFont (const MString &font) | 
| MString | GetFont () const | 
| void | SetSize (unsigned int px) | 
| unsigned int | GetSize () | 
| void | Clear () | 
| void | BuildGlyphData () | 
| virtual void | Message (int Message, PStack &data, const MString &name) | 
| Receive message (When subscribing to messages, you receive them via this command).   | |
| virtual bool | Command (PStack &ret, const char *command, PStack &args) | 
| Handle a message, by default, it returns false, meaning the command was not handled.   | |
| virtual void | EnumerateCommands (MVector< MString > &toAdd) | 
| CLASS_RTTI (MercuryText, MercuryObject) | |
| int | GetCurWidth () | 
| int | GetCurHeight () | 
| void | SetMaxWidth (int maxwidth) | 
| void | SetTabWidth (int pixels) | 
| const MercuryTextGlyphData * | GetGlyphData () const | 
| unsigned int | NumCharacters () const | 
| const MercuryTextChar * | GetCharacter (unsigned int i) const | 
| virtual void | CustomRender () | 
Private Member Functions | |
| bool | New_Face (FT_LibraryRec_ *library, const MString &filepathname, long face_index, FT_FaceRec_ **aface) | 
| void | SetupSizing (const DisplayDimensions &d) | 
| MercuryTextChar * | BuildCharSprite (const char ch, int &x, int &y) | 
| void | BuildFontDisplay () | 
Private Attributes | |
| int | m_maxwidth | 
| int | m_tabwidth | 
| unsigned int | m_h | 
| unsigned int | m_fontheight | 
| MString | m_text | 
| MString | m_font | 
| MVector< MAutoPtr< MercuryTextChar > > | m_characters | 
| MString | m_id | 
| char * | m_fontFileData | 
| MercuryTextGlyphData * | m_mtgd | 
Classes | |
| struct | LetterHolder | 
Definition at line 52 of file MercuryText.h.
| MercuryText::MercuryText | ( | ) | 
Definition at line 24 of file MercuryText.cpp.
| MercuryText::~MercuryText | ( | ) |  [virtual] | 
        
Definition at line 31 of file MercuryText.cpp.
| void MercuryText::Init | ( | ) |  [virtual] | 
        
| void MercuryText::SetText | ( | const MString & | text | ) | 
Definition at line 99 of file MercuryText.cpp.
| MString MercuryText::GetText | ( | ) |  const [inline] | 
        
Definition at line 61 of file MercuryText.h.
| void MercuryText::SetFont | ( | const MString & | font | ) | 
Definition at line 58 of file MercuryText.cpp.
| MString MercuryText::GetFont | ( | ) |  const [inline] | 
        
Definition at line 63 of file MercuryText.h.
| void MercuryText::SetSize | ( | unsigned int | px | ) | 
Definition at line 52 of file MercuryText.cpp.
| unsigned int MercuryText::GetSize | ( | ) |  [inline] | 
        
Definition at line 65 of file MercuryText.h.
| void MercuryText::Clear | ( | ) | 
Definition at line 90 of file MercuryText.cpp.
| void MercuryText::BuildGlyphData | ( | ) | 
Definition at line 320 of file MercuryText.cpp.
Receive message (When subscribing to messages, you receive them via this command).
Reimplemented from MercuryMessageHandler.
Definition at line 273 of file MercuryText.cpp.
Handle a message, by default, it returns false, meaning the command was not handled.
Reimplemented from MercuryCommandHandler.
Definition at line 301 of file MercuryText.cpp.
| MercuryText::CLASS_RTTI | ( | MercuryText | , | |
| MercuryObject | ||||
| ) | 
| int MercuryText::GetCurWidth | ( | ) |  [inline] | 
        
Definition at line 76 of file MercuryText.h.
| int MercuryText::GetCurHeight | ( | ) |  [inline] | 
        
Definition at line 77 of file MercuryText.h.
| void MercuryText::SetMaxWidth | ( | int | maxwidth | ) |  [inline] | 
        
Definition at line 78 of file MercuryText.h.
| void MercuryText::SetTabWidth | ( | int | pixels | ) |  [inline] | 
        
Definition at line 79 of file MercuryText.h.
| const MercuryTextGlyphData* MercuryText::GetGlyphData | ( | ) |  const [inline] | 
        
Definition at line 81 of file MercuryText.h.
| unsigned int MercuryText::NumCharacters | ( | ) |  const [inline] | 
        
Definition at line 83 of file MercuryText.h.
| const MercuryTextChar* MercuryText::GetCharacter | ( | unsigned int | i | ) |  const [inline] | 
        
Definition at line 84 of file MercuryText.h.
| void MercuryText::CustomRender | ( | ) |  [virtual] | 
        
| bool MercuryText::New_Face | ( | FT_LibraryRec_ * | library, | |
| const MString & | filepathname, | |||
| long | face_index, | |||
| FT_FaceRec_ ** | aface | |||
| ) |  [private] | 
        
| void MercuryText::SetupSizing | ( | const DisplayDimensions & | d | ) |  [private] | 
        
Definition at line 286 of file MercuryText.cpp.
| MercuryTextChar * MercuryText::BuildCharSprite | ( | const char | ch, | |
| int & | x, | |||
| int & | y | |||
| ) |  [private] | 
        
Definition at line 108 of file MercuryText.cpp.
| void MercuryText::BuildFontDisplay | ( | ) |  [private] | 
        
Definition at line 147 of file MercuryText.cpp.
int MercuryText::m_maxwidth [private]           | 
        
Definition at line 88 of file MercuryText.h.
int MercuryText::m_tabwidth [private]           | 
        
Definition at line 88 of file MercuryText.h.
unsigned int MercuryText::m_h [private]           | 
        
Definition at line 94 of file MercuryText.h.
unsigned int MercuryText::m_fontheight [private]           | 
        
Definition at line 94 of file MercuryText.h.
MString MercuryText::m_text [private]           | 
        
Definition at line 99 of file MercuryText.h.
MString MercuryText::m_font [private]           | 
        
Definition at line 100 of file MercuryText.h.
MVector< MAutoPtr<MercuryTextChar> > MercuryText::m_characters [private]           | 
        
Definition at line 101 of file MercuryText.h.
MString MercuryText::m_id [private]           | 
        
Definition at line 103 of file MercuryText.h.
char* MercuryText::m_fontFileData [private]           | 
        
Definition at line 118 of file MercuryText.h.
MercuryTextGlyphData* MercuryText::m_mtgd [private]           | 
        
Definition at line 119 of file MercuryText.h.