|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <FontCache.h>
Public Member Functions | |
| bool | operator< (const FontCacheKey &other) const |
| Comparison operator for std::map ordering. | |
| bool | operator== (const FontCacheKey &other) const |
| Equality operator for debugging/testing. | |
Public Attributes | |
| std::string | filename |
| int | style |
| int | size |
Cache key for font lookup (excludes color - that's the optimization!) Multiple PFont objects with same {filename, style, size} but different colors can share a single TTF_Font object since SDL_TTF applies colors at render time.
Definition at line 14 of file FontCache.h.
| bool FontCache::FontCacheKey::operator< | ( | const FontCacheKey & | other | ) | const |
Comparison operator for std::map ordering.
Definition at line 10 of file FontCache.cpp.
| bool FontCache::FontCacheKey::operator== | ( | const FontCacheKey & | other | ) | const |
| std::string FontCache::FontCacheKey::filename |
Definition at line 15 of file FontCache.h.
Referenced by operator<(), operator==(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), and FontCache::FontCacheManager::ReleaseFont().
| int FontCache::FontCacheKey::size |
Definition at line 17 of file FontCache.h.
Referenced by FontCache::FontCacheManager::GetFont(), operator<(), operator==(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), FontCache::FontCacheManager::ReleaseFont(), and PlatformFont::SetFontSize().
| int FontCache::FontCacheKey::style |
Definition at line 16 of file FontCache.h.
Referenced by FontCache::FontCacheManager::GetFont(), operator<(), operator==(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), FontCache::FontCacheManager::ReleaseFont(), and PlatformFont::SetFontStyle().