Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FontPool Class Reference

#include <fontPool.h>

List of all members.

Private Types

typedef pmap< string, PT(TextFontFonts )

Private Member Functions

INLINE FontPool ()
bool ns_has_font (const string &str)
TextFontns_load_font (const string &str)
void ns_add_font (const string &filename, TextFont *font)
void ns_release_font (const string &filename)
void ns_release_all_fonts ()
int ns_garbage_collect ()
void ns_list_contents (ostream &out)

Static Private Member Functions

INLINE bool verify_font (const string &filename)
INLINE TextFontload_font (const string &filename)
INLINE void add_font (const string &filename, TextFont *font)
INLINE void release_font (const string &filename)
INLINE void release_all_fonts ()
INLINE int garbage_collect ()
INLINE void list_contents (ostream &out)
void lookup_filename (const string &str, Filename &filename, int &face_index)
FontPool * get_ptr ()

Private Attributes

PUBLISHED __pad0__: INLINE static bool has_font(const string &filename)
Fonts _fonts

Static Private Attributes

FontPool * _global_ptr = (FontPool *)NULL


Member Typedef Documentation

typedef pmap<string, PT(TextFont) FontPool::Fonts) [private]
 

Definition at line 70 of file fontPool.h.

Referenced by ns_garbage_collect().


Constructor & Destructor Documentation

INLINE FontPool::FontPool  )  [private]
 


Member Function Documentation

INLINE void FontPool::add_font const string &  filename,
TextFont font
[static, private]
 

INLINE int FontPool::garbage_collect  )  [static, private]
 

FontPool * FontPool::get_ptr  )  [static, private]
 

Definition at line 229 of file fontPool.cxx.

References _global_ptr, and NULL.

INLINE void FontPool::list_contents ostream &  out  )  [static, private]
 

INLINE TextFont* FontPool::load_font const string &  filename  )  [static, private]
 

Referenced by TextNode::load_default_font().

void FontPool::lookup_filename const string &  str,
Filename &  filename,
int &  face_index
[static, private]
 

Definition at line 195 of file fontPool.cxx.

References VirtualFileSystem::get_global_ptr(), get_model_path(), and VirtualFileSystem::resolve_filename().

Referenced by ns_has_font(), and ns_load_font().

void FontPool::ns_add_font const string &  filename,
TextFont font
[private]
 

Definition at line 112 of file fontPool.cxx.

References _fonts.

int FontPool::ns_garbage_collect  )  [private]
 

Definition at line 147 of file fontPool.cxx.

References _fonts, and Fonts.

bool FontPool::ns_has_font const string &  str  )  [private]
 

Definition at line 36 of file fontPool.cxx.

References _fonts, and lookup_filename().

void FontPool::ns_list_contents ostream &  out  )  [private]
 

Definition at line 175 of file fontPool.cxx.

References _fonts.

TextFont * FontPool::ns_load_font const string &  str  )  [private]
 

Definition at line 57 of file fontPool.cxx.

References _fonts, NodePath::adjust_all_priorities(), lookup_filename(), model_loader, NULL, and PT.

void FontPool::ns_release_all_fonts  )  [private]
 

Definition at line 137 of file fontPool.cxx.

References _fonts.

void FontPool::ns_release_font const string &  filename  )  [private]
 

Definition at line 123 of file fontPool.cxx.

References _fonts.

INLINE void FontPool::release_all_fonts  )  [static, private]
 

INLINE void FontPool::release_font const string &  filename  )  [static, private]
 

INLINE bool FontPool::verify_font const string &  filename  )  [static, private]
 


Member Data Documentation

PUBLISHED FontPool::__pad0__ [private]
 

Definition at line 42 of file fontPool.h.

Fonts FontPool::_fonts [private]
 

Definition at line 71 of file fontPool.h.

Referenced by ns_add_font(), ns_garbage_collect(), ns_has_font(), ns_list_contents(), ns_load_font(), ns_release_all_fonts(), and ns_release_font().

FontPool * FontPool::_global_ptr = (FontPool *)NULL [static, private]
 

Definition at line 26 of file fontPool.cxx.

Referenced by get_ptr().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:18 2003 for Panda by doxygen1.3