Page MenuHomePhabricator (Chris)

font_factory.h
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

font_factory.h

#ifndef _rtech1_font_factory_h
#define _rtech1_font_factory_h
#include <string>
#include <map>
#include "file-system.h"
#include "font.h"
#include "thread.h"
struct DATAFILE;
class Font;
class Collector;
class FontFactory{
public:
/* clear the cache. if anyone has a reference to an existing Font object a crash
* is likely to occur!
*/
static void clear();
private:
friend class Collector;
friend class Font;
static Font * getFont(const Filesystem::RelativePath & path, const int x, const int y );
static Font * getFont(const Filesystem::AbsolutePath & path, const int x, const int y );
private:
FontFactory();
virtual ~FontFactory();
static void destroy();
Font * getRealFont(const Filesystem::RelativePath & str, const int x, const int y );
Font * getRealFont(const Filesystem::AbsolutePath & str, int x, int y );
void _clear();
private:
static FontFactory * my_factory;
// DATAFILE * my_data;
std::map<std::string, Font *> font_mapper;
NullFont nullFont;
Util::Thread::LockObject lock;
};
#endif

File Metadata

Mime Type
text/x-c++
Expires
Sat, Nov 14, 6:02 PM (15 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
128539
Default Alt Text
font_factory.h (1 KB)

Event Timeline