#include <FontManager.h>
Inheritance diagram for CFontManager:
Public Member Functions | |
virtual CCustomFont * | LoadResource (TiXmlNode *pDataNode, CString strFilename, UINT uiID=0, CString strName="") |
virtual CCustomFont * | GetResource (int uiIndex, int uiID=-1, CString strName="", CString strFilename="") |
virtual CCustomFont * | AddResource (CString strName, UINT uiID=0, eEntityType ResourceType=Entity_Default) |
int | RemoveResource (CCustomFont *pFont) |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual void | Destroy () |
virtual bool | IsOfType (eEntityType eType) |
This class provides means to managing various fonts (Bitmap or others). It manages a collection of fonts (although not pooled yet!) and allow to retrieve them by index, name, ID or filename.
Definition at line 14 of file FontManager.h.
|
Method details:
Reimplemented from CResourceManager. Definition at line 16 of file FontManager.cpp. References CDoubleList< CXMLResource * >::push_back(), CEntity::SetID(), and CEntity::SetName(). |
|
Method details: This is where clean-up occurs Reimplemented from CResourceManager. Definition at line 242 of file FontManager.cpp. References CDoubleList< CXMLResource * >::begin(), CResourceManager::Destroy(), CCustomFont::GetFontType(), CEntity::GetID(), CGlobalLogger::GetLogLevel(), CEntity::GetName(), CSingleton< CGlobalLogger >::GetSingleton(), CDoubleList< CXMLResource * >::next(), CDoubleList< CXMLResource * >::set_ptr(), CDoubleList< CXMLResource * >::size(), and CLogger::Write(). |
|
Method details:
Reimplemented from CResourceManager. Definition at line 186 of file FontManager.cpp. References CDoubleList< CXMLResource * >::at(), CDoubleList< CXMLResource * >::begin(), CXMLResource::GetFilename(), CEntity::GetID(), CEntity::GetName(), CDoubleList< CXMLResource * >::next(), CDoubleList< CXMLResource * >::set_ptr(), and CDoubleList< CXMLResource * >::size(). Referenced by LoadResource(), and CGUIStatic::PropertyChanging(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CResourceManager. Definition at line 266 of file FontManager.cpp. References CResourceManager::IsOfType(). |
|
Method details:
Implements CResourceManager. Definition at line 119 of file FontManager.cpp. References TiXmlElement::Attribute(), CEntity::GetID(), CEntity::GetName(), GetResource(), CCustomFont::LoadXML(), CDoubleList< CXMLResource * >::push_back(), CEntity::SetID(), CEntity::SetName(), and TiXmlNode::ToElement(). Referenced by CGUIStatic::LoadXML(), and LoadXML(). |
|
Method details:
Reimplemented from CResourceManager. Definition at line 37 of file FontManager.cpp. References TiXmlNode::FirstChild(), CEntity::GetID(), CEntity::GetName(), CSingleton< CGlobalLogger >::GetSingleton(), TiXmlNode::IterateChildren(), LoadResource(), CResourceManager::LoadXML(), TiXmlNode::pcValue(), and CLogger::Write(). |
|
Method details:
|
|
Method details:
Reimplemented from CResourceManager. Definition at line 80 of file FontManager.cpp. References CDoubleList< CXMLResource * >::begin(), TiXmlNode::InsertEndChild(), CDoubleList< CXMLResource * >::next(), TiXmlDocument::SaveFile(), CCustomFont::SaveXML(), CDoubleList< CXMLResource * >::set_ptr(), and TiXmlNode::ToElement(). |