Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F620130
font_factory.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
font_factory.h
View Options
#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
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 5:35 PM (13 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
128539
Default Alt Text
font_factory.h (1 KB)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline